]> gitweb.factorcode.org Git - factor.git/blob - core/math/random.facts
more sql changes
[factor.git] / core / math / random.facts
1 USING: help math ;
2
3 HELP: (random-int)
4 { $values { "rand" "an integer between 0 and 2^32-1" } }
5 { $description "Generates a random 32-bit unsigned integer." } ;
6
7 HELP: random-int
8 { $values { "rand" "an integer between 0 and n" } }
9 { $description "Outputs a pseudo-random integer in the interval " { $snippet "[0,n)" } "." }
10 { $notes "As per the closed interval notation, the end-points are included in the interval." } ;