ResetRanDev

Description

Initialize internal data structures to permit RanDev() to return a pseudo-random sequence of numbers. This involves reading a file, each line of which has a date associated with it. Basically, this is a "seeding" function.

Type

BOOLEAN

Arguments

Type

Meaning

1

BOOLEAN

True if some lines in the initialization file should be skipped.

2

DATETIME

The date of the line to be skipped.

Evaluation

Returns true if initialization was successful.

Comments

The recommendation is that this function be called within a block that contains only the following statement:

obj.slot[] = IF (NOT ResetRanDev(...))

STOP_RUN "ResetRanDev failed"

ENDIF

This will never assign any values but will always evaluate the function call. An alternative is to embed the call within a Print statement, but if diagnostics are turned off then this statement will not get executed.

This, and the RanDev() function are scheduled to be removed in the future and replaced with a more convenient and effective means of generating a sequence of pseudo-random numbers.

 
ResetRanDev(TRUE, @"24:00:00 October Max DayOfMonth, 1983")
 
TRUE or FALSE