www.delorie.com/djgpp/doc/libc-2.01/libc_591.html   search  
Go to the first, previous, next, last section, table of contents.


srandom

Syntax

#include <stdlib.h>

int srandom(int seed);

Description

This function initialized the random number generator (see section random). Passing the same seed results in random returning predictable sequences of numbers.

Return Value

Zero.

Example

srandom(45);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997