ReferenceScript nodesMath › Random
Random Integer in Range
A random whole number from Min to Max, both included (Min when Max is below it).
ƒRandom Integer in Range
Min0Result
Max10
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Minmin | int | 0 | – |
Maxmax | int | 10 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒRandom Integer in Range
Min0Result
Max10
ƒ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.