User Portlet User Portlet

Discussions
Perhaps you feel more comfortable with Sum? Depending on your code you might need Normal to get rid of SparseArray. Sum[SparseArray[RandomInteger[{1, 32}, 2] -> 1, {32, 32}], {2048}] Normal[Sum[SparseArray[RandomInteger[{1, 32}, 2]...
Hello Rohit, thank you for the reply. I checked it and now it works. I would not thought of this.
Yes.Use: Rationalize[0.5, 0] (*1/2*)
Good. I wish I knew what the exact problem is. (I get the same symptoms for your density: first random sample seems to work but then stalls forever for any subsequent random samples.)