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.
|