I made simple sudoku generator. Please enjoy it. (JAVA)
class Q{public static void main(String[]a){for(;s<82;n=-6)for(c=new int[730],c[
40]=s%3;n<l;l=730)if((n<0?c[m=(int)(Math.random()*81)]=m:0)<c[y=n++/9])for(c[y%
9*9-y/9+8]+=s=1;l-->0;c[y]^=v,c[z]^=v)c[z=l/9+300]^=v=(y=c[l]|=l<84?0:511)<z&2*
((v=(y>0?1<<y%9:-1)&c[z]&c[y=84+l%9]&c[z+=y/3-z%3])&v-1)<v?v+=(l=84)-s++<m?n=0&
m--:0:0;for(;y-->0;)System.out.print(--c[y]%9+1+(y%9<1?"\n":" "));}static int
y,z,s,l,m,n,v,c[];}
0 0 9 0 0 4 0 0 0
0 4 0 0 1 0 0 2 0
0 0 5 0 0 6 1 0 3
7 0 6 0 0 0 0 0 0
0 3 0 0 0 0 0 1 0
0 0 0 0 0 0 9 0 5
2 0 3 5 0 0 7 0 0
0 1 0 0 9 0 0 5 0
0 0 0 2 0 0 4 0 0