random-bits-exact ( numbits -- n ) - Factor Documentation

random-bits-exact ( numbits -- n )
Generating random integers



Vocabulary
random

Inputs
numbits an integer


Outputs
n a random integer


Word description
Returns an integer exactly numbits bits in length, with the topmost bit set to one.

Definition
USING: namespaces ;

IN: random

: random-bits-exact ( numbits -- n )
random-generator get random-bits-exact* ;

AltStyle によって変換されたページ (->オリジナル) /