Anonymous user
Random number generator (included): Difference between revisions
m
We don't need to know the pros and cons
(Add Modula-3) |
m (We don't need to know the pros and cons) |
||
Line 8:
The main types of pseudo-random number generator, ([[wp:PRNG|PRNG]]), that are in use are the [[linear congruential generator|Linear Congruential Generator]], ([[wp:Linear congruential generator|LCG]]), and the Generalized Feedback Shift Register, ([[wp:Generalised_feedback_shift_register#Non-binary_Galois_LFSR|GFSR]]), (of which the [[wp:Mersenne twister|Mersenne twister]] generator is a subclass). The last main type is where the output of one of the previous ones (typically a Mersenne twister) is fed through a [[wp:Cryptographic hash function|cryptographic hash function]] to maximize unpredictability of individual bits.
Note that LCGs nor GFSRs should be used for the most demanding applications (cryptography) without additional steps.
=={{header|ActionScript}}==
|