Motion
Get Motion

ReferenceScript nodesMath › Random

Random Number in Range

A new random number each time it's read, Min and Max; Whole Number gives whole numbers, to included.

Math › RandomPure: no flow pinsrandom

Inputs

PinTypeStarts atNotes
Minfromnumber0–
Maxtonumber1–
Whole Numberwholeboolfalse–

Outputs

PinType
Resultoutnumber

The code it becomes

The graph below written as a script would write it.

// On Scene Startscene.log(((false ? Math.floor(0 + Math.random() * (1 - 0 + 1)) : 0 + Math.random() * (1 - 0))));

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.