urn
Description
Outputs random numbers and keeps track of each number that has been generated. When all numbers up to the maximum (set via an argument or the right inlet) have been output, a
is send out the right outlet.Examples

Arguments
limit [int]
The number of possible values for the random number generator. If no argument is typed in, there will be only
possible number. The maximum limit is 4096.seed [int]
A second argument is used to set a "seed" value for the random generator. If no argument is specified, the time value will be used to initialize the seed.
Attributes
Common Box Attributes
Messages
bang
int
Arguments
(inlet1)
Arguments
clear
seed
Arguments
Output
bang
Out right outlet: When all numbers in the current range have been generated, urn sends a out the right outlet instead of a number out the left outlet.
int
Out left outlet: If there are numbers within the current range that have not been sent out since the last urn generates a random number between 0 and one less than the maximum.
message was received,See Also
Name | Description |
---|---|
decide | |
deferlow | |
drunk | |
random |