$Random Seed

From m204wiki
Revision as of 17:36, 28 January 2011 by 198.242.244.47 (talk) (Created page with "{{DISPLAYTITLE:$Random_SEED}} <span class="pageSubtitle"><section begin="desc" />Build seed specifying series of $RANDOM results<section end="desc" /></span> <p class="warning">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin="desc" />Build seed specifying series of $RANDOM results<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Random_SEED function is to be entered.

This function sets a %variable or IMAGE item to a value that can be used by $Random, so that the series of numbers returned by $RANDOM is reproducible.

$Random_Seed accepts two required arguments and returns zero.

The first argument is a %variable or IMAGE item to be set to a random number seed. This argument must be a string of length at least 144.

The second argument specifies a number that determines the $Random series. This argument must be greater than or equal to -1,000,000,000 and less than or equal to 1,000,000,000.

Syntax

<section begin="syntax" /> %RESULT = $Random_Seed(%SEED, seed_value) <section end="syntax" />

$Random_Seed Function

%SEED is initialized for a series of $Random results that depends on seed_value.


If any argument is invalid or omitted, the request is cancelled.

See the description of $Random for examples of the use of $Random_Seed.

Products authorizing $Random_Seed