head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.40; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.57; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.04; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.22.00; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# sg_random.h File Reference

Routines to handle random number generation and hide platform differences. More...

Go to the source code of this file.

## Functions
void | sg_srandom_time ()
| Seed the random number generater with time() so we don't see the same sequence every time.
void | sg_srandom (unsigned int seed)
| Seed the random number generater with your own seed so can set up repeatable randomization.
double | sg_random ()
| Return a random number between [0.0, 1.0).

## Detailed Description

Routines to handle random number generation and hide platform differences.

Definition in file sg_random.h.

## Function Documentation

double sg_random | ( |  | ) |

| Return a random number between [0.0, 1.0). Returns: next "random" number in the "random" sequence Definition at line 146 of file sg_random.c.

void sg_srandom | ( | unsigned int | seed | ) |

  | Seed the random number generater with your own seed so can set up repeatable randomization. Parameters:
  seed | random number generator seed
Definition at line 140 of file sg_random.c.

@ 1.3 log @Oops, try again. @ text @d105 1 a105 1