Random number generator (included): Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: show that ooRexx supports negative integers and a range of up to 999999999)
(→‎{{header|Go}}: Rand→math/rand and Crypto/rand→crypto/rand, both with doc links; Unix-like not Linix[sic] like)
Line 279:
=={{header|Go}}==
Go has two packages providing random numbers.
# Rand[https://golang.org/pkg/math/rand/ math/rand] has general purpose random number support. [https://golang.org/src/pkg/math/rand/rng.go The code] attributes the algorithm to DP Mitchell and JA Reeds, and with what little I know, I would guess it's an GFSR. (It uses a large array commented "feeback register" and has variables named "tap" and "feed.")
# Crypto[https://golang.org/pkg/crypto/rand/ crypto/rand] says it "implements a cryptographically secure pseudorandom number generator." I think though it should say that it ''accesses'' a cryptographically secure pseudorandom number generator. It uses <tt>/dev/urandom</tt> on Linix and similarUnix-like systems and the CryptGenRandom API on Windows.
 
=={{header|Golfscript}}==