xor-prng
Provides basic pseudo random number generation for 32-bit and 16-bit Forths.
xor-prng - A Simple Pseudo Random Number Generator for 16/32 bit Forths
This is a small and simple library for good enough pseudo random number generation. This should be great for games and the like, but I wouldn't recommend it for cryptography.
Definitions
rng-seed
rng-seed is the seed value used to generate all the psuedo random numbers. It is updated every time a number is generated.
rng
rng generates a random number.
choose
choose generates a random number between (inclusive) 0 and n-1.
coin
coin randomly decides between zero and one. It is roughly equivalent to a 50/50 coin flip.
by sparkingcircuit
Versions
Tags
publicdomain, unlicense, prng, rng
Dependencies
None
Dependents
None