Next: random utils lists, Up: random utils [Index]
The following bindings are exported by the (vicare crypto
randomisations)
library.
Return a closure that, when evaluated with no arguments, returns a random integer in the range selected by start and last both included, using randomness from source. start and last must be exact integers. The optional step argument, which defaults to one, establishes the step of allowed values from the range.
Return a closure that, when evaluated with no arguments, returns a random real in the range selected by start and last, using randomness from source. start and last must be real numbers.
R = start + (last - start) * X
so R is in the range delimited by start and last both
excluded. The random real X is computed with no specified unit.
random-source-reals-maker
, for details.
U = floor[(last - start) / step]
then computing:
R = start + step * N
so R is in the range delimited by start included and last excluded.
Return a closure which, when applied to an integer number n,
generates random permutations of the set {0, ..., n-1}
using
randomness from source. Such a permutation is represented by a
vector of length n for the images of the points.
Next: random utils lists, Up: random utils [Index]