Unbias a random generator: Difference between revisions

m
(Updated D entry)
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 (about two million calls to <code>random</code>) generated through this bias/unbias scheme take nearly a second.
<lang parigp>randN(N)=!random(N);
unbiased(N)={