Rand.h File Reference

[Internal] Random number generator More...


Functions

void seedMT (unsigned int seed)
unsigned int reloadMT (void)
unsigned int randomMT (void)
float frandomMT (void)


Detailed Description

[Internal] Random number generator

This file is part of RakNet Copyright 2003 Kevin Jenkins.

Usage of Raknet is subject to the appropriate licence agreement. "Shareware" Licensees with Rakkarsoft LLC are subject to the shareware license found at http://www.rakkarsoft.com/shareWareLicense.html "Commercial" Licensees are subject to the commercial license found at http://www.rakkarsoft.com/sourceCodeLicense.html Custom license users are subject to the terms therein. All other users are subject to the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.


Function Documentation

float frandomMT void   ) 
 

Gets a random float

Returns:
0 to 1.0f, inclusive

unsigned int randomMT void   ) 
 

Gets a random unsigned int

Returns:
an integer random value.

void seedMT unsigned int  seed  ) 
 

Initialise seed for Random Generator

Parameters:
[in] seed The seed value for the random number generator.


Generated on Mon Mar 20 20:32:54 2006 for RakNet by  doxygen 1.4.6-NO