For version 0.7.0.
To top.  Up: ..Shapes..Numeric

..Shapes..Numeric..Random


Core bindings
newRandom •randomdevice

Besides the most elementary things such as initializing the random state and then sampling uniformly from a huge range of integer values, Shapes also comes with some more interesting distributions to sample from. Distributions are not represented explicitly, only implicitly as the non-pure functions that return an object of some kind while acting on a random state.
newRandom
Create random number generator seed.
seed::( §Integer §ChronologicalTime ) size:32::§Integer §RandomSeed
Dynamic references:none
Creates random number generator seed based on seed (agreed, seed being used with two slightly different meanings hre), with size number of bits.
A random number generator seed is simply the initial state of a random number generator, but note that it is not possible to draw samples using the seed, since the seed is a value and not a state. To draw samples, a §•Random must be spawned from the seed. Note that all §•Random spawned from the same seed will generate the same pseudo random number sequence.
•randomdevice
Type:§•RandomDevice
Source of high quality random seeds.
Get Shapes at SourceForge.net. Fast, secure and Free Open Source software downloads