Breadcrumbs

random() Operation returning an Integer Value

Syntax

set anInteger = random(minimum, maximum)

Semantics

Returns anInteger value between minimum and maximum.

Substitutables

minimum, maximum

Can be any variable or object attribute having the type Integer. If maximum is less or equal minimum an error will occur. 

Examples

set rand = random(0, 10);
⬇️

ActionScript_TypeConversions_Example

Click here to download a simple example model that shows different possibilities for type conversions between Float, Integer, String, and Boolean types in Scheer PAS Designer.

📗