decide
Description
Outputs random
and messages. The output sequence depends on the seed value to determine the sequence of values.Examples

Simulate a coin toss switch randomly between on and off
Arguments
seed [int]
Optional
Sets a "seed" value to cause a specific (reproducible) sequence of pseudo-random
and outputs to occur. If there is no argument, the time elapsed since system startup (an unpredictable value) is used as the seed, ensuring an unpredictable sequence for output.Attributes
Common Box Attributes
Messages
bang
Causes a randomly chosen output of
or . int
Arguments
input
[int]
In left inlet: Same as
. (inlet1)
Arguments
seed
[int]
In right inlet: A given "seed" number causes a specific (reproducible) sequence of pseudo-random
and outputs to occur. The number uses the time elapsed since system startup (an unpredictable value) as the seed, ensuring an unpredictable sequence of and outputs. Output
int
or a , chosen at random. With certain seed values, the output may seem at first to follow a "non-random" pattern, but over the course of many iterations the sequence becomes unpredictable and the balance between and becomes even.
See Also
Name | Description |
---|---|
drunk | |
random | |
toggle | |
urn | |
Max Interface Tutorial 2: Picture UI Elements | Max Interface Tutorial 2: Picture UI Elements |