SourcePoint AMD Help

Table of Contents

srand

Set the starting point for generating a pseudo-random number using the rand command.

Syntax

srand(expr)

Where:

expr

specifies a number or an expression of type ord4.

Discussion

The srand command sets the starting point for generating a pseudo-random number using the rand command.

Example

Command input:

srand(5)

rand

Result:

00000036H

Command input:

rand

Result:

00007015H

Related Topics: