mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
31 lines
491 B
Plaintext
31 lines
491 B
Plaintext
NAME
|
|
israndom - whether a value is a Blum generator state
|
|
|
|
SYNOPSIS
|
|
israndom(x)
|
|
|
|
TYPES
|
|
x any, &any
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Determine if x is a Blum-Blum-Shub pseudo-random number generator state.
|
|
This function will return 1 if x is a file, 0 otherwise.
|
|
|
|
XXX - the interface to the Blum generator has not been not written.
|
|
|
|
EXAMPLE
|
|
> a = srandom(0)
|
|
> print israndom(a), israndom(0);
|
|
1 0
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
XXX - fill in
|