Name

random:misc — ordinary primitive

Synopsis

FORTH

RANDOM ( n1 -- n2 )();
p4:"random";

Description

returns random number with 0 <= n2 < n1)

 : RANDOM ?DUP IF _random SWAP MOD ELSE _random THEN ;