Motion
Get Motion

ReferenceScripting APIMotionScenerandom

MotionScene.random

method

A random number: 0 to 1, 0 to max, or min to max.

Namerandom
Kindmethod of MotionScene
Called asscene.random(…)
As a nodeRandom Number in Range (logic graph)
Since0.3

Syntax

random(    min?: number,    max?: number): number

Parameters

NameTypeDescription
minnumberOptional. The lowest (or the highest, alone)
maxnumberOptional. The highest

Returns

number: the number (the same each run for the same seed).

See also

In examples: Rain Harbour