On Sunday, April 24, 2016 at 1:01:39 AM UTC+2, Kiran Kedlaya wrote:
>
> This seems to be filling out each row using successive random 32-bit words 
> from gmp, lopping off the extra bits at the end. Is that a bad idea for 
> some reason?
>

Its only lopping off the excess bits at the last column of each row to 
avoid writing out of bounds. The snippet is exactly how the prng should be 
used to fill the matrix.

What is bad is to use lower bits of a prng for entries like  "m[i,j] = 
random() % n". But the code snippet does not do that. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to