Generate a random number
Name | Type | Opt | Description |
---|---|---|---|
initial-maximum-limit | int | opt | Sets an initial limit to the random output. The output will always be between 0 and one less than this maximum limit. If there is no argument, the limit is initially set to random to output 0 whenever it receives a . | , which causes
seed-value | int | opt | 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. |
bang | In left inlet: Sends out a randomly generated number between 0 and one less than its maximum limit. | |
seed | seed-value [int] |
In left inlet: The word random object is created. | , followed by a number, provides a "seed" value for the random generator, which causes a specific (reproducible) sequence of pseudo-random numbers to occur. The number uses the time elapsed since system startup (an unpredictable value) as the seed, ensuring an unpredictable sequence of numbers. This unpredictable seed is used by default when the
Name | Description |
---|---|
decide | Choose randomly between on and off (1 and 0) |
drunk | Output random numbers in a moving range |
urn | Generate random numbers without duplicates |
Max Basic Tutorial 10: Random Drawing | Max Basic Tutorial 10: Random Drawing |