Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: stdlib.h

rand()

IMPORT_C int rand(void);

Description

Returns a different integer each time it is called; each integer is chosen by an algorithm designed to be unpredictable, so that you can use <> when you require a random number.

Return value

int

the next pseudo-random integer in sequence; it is a number between 0 and RAND_MAX (inclusive).