ReferenceScript nodesMath › Random
Random Integer
A random whole number from 0 up to Max, Max not included (0 when Max is 0 or less).
ƒRandom Integer
Max10Result
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Maxmax | int | 10 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒRandom Integer
Max10Result
ƒ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.