mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
35 lines
746 B
Plaintext
35 lines
746 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
|
|
seed, random, srandom, randombit,
|
|
isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
|
|
ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
|
|
isobjtype, isodd, isprime, isrand, isreal, isrel,
|
|
issimple, issq, isstr, istype
|