Anonymous user
Unbias a random generator: Difference between revisions
m
→{{header|PARI/GP}}: trivia
m (→{{header|PARI/GP}}: clarify) |
m (→{{header|PARI/GP}}: trivia) |
||
Line 831:
=={{header|PARI/GP}}==
GP's random number generation is high-quality, using Brent's [http://maths.anu.edu.au/~brent/random.html XORGEN]. Thus this program is slow: the required 400,000 unbiased numbers
<lang parigp>randN(N)=!random(N);
unbiased(N)={
|