ReferenceScript nodesMath › Random
Random Boolean with Weight
True with a chance of Weight (0 or less never, 1 or more always).
ƒRandom Boolean with Weight
Weight0.5Result
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Weightweight | number | 0.5 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | bool |
In a graph
◆On Scene Start
ƒRandom Boolean with Weight
Weight0.5Result
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.