Skip to reading
Action Lists & Events

RandomValue

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

Generate a random number in the selected range and store it.

Enable Whole Numbers for an integer-style choice. Keep the range small enough to test every outcome.

Source table from RandomValue, page 58
Field / stored keyInputDefault where specified
Minimum minimumNumber; decimals allowed.0.0
Maximum maximumNumber; decimals allowed.1.0
Whole Numbers wholeNumbersStore an integer-style random result instead of a fractional result.false
Store in Variable resultVariableName of the game variable that receives the returned value."random_value"

GetIncludedVariable#

Read a shared variable from an included/shared script and optionally store it.

This is script-shared state, not simply another name for a project game variable.

Source table from RandomValue, page 58
Field / stored keyInputDefault where specified
Script scriptIdChoose a visual or supported text script.-
Shared Variable variableNameText.-
Store in Variable resultVariableName of the game variable that receives the returned value.-
Page 58 of 189Permalink
Go to page