Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Namespaces | Functions
Rand.h File Reference

[Internal] Random number generator More...

#include "Export.h"
Include dependency graph for Rand.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RakNet::RakNetRandom

Namespaces

namespace  RakNet
 

Simple class to send changes between directories. In essence, a simple autopatcher that can be used for transmitting levels, skins, etc.


Functions

void fillBufferMT (void *buffer, unsigned int bytes)
float frandomMT (void)
unsigned int randomMT (void)
unsigned int reloadMT (void)
void seedMT (unsigned int seed)

Detailed Description

This file is part of RakNet Copyright 2003 Jenkins Software LLC

Usage of RakNet is subject to the appropriate license agreement.

Definition in file Rand.h.


Function Documentation

void fillBufferMT ( void *  buffer,
unsigned int  bytes 
)

Randomizes a buffer

Note:
not threadSafe, use an instance of RakNetRandom if necessary per thread
float frandomMT ( void  )

Gets a random float

Note:
not threadSafe, use an instance of RakNetRandom if necessary per thread
Returns:
0 to 1.0f, inclusive

Referenced by DataStructures::OrderedChannelHeap< channel_key_type, heap_data_type, channel_key_comparison_func >::PushAtHead().

unsigned int randomMT ( void  )

Gets a random unsigned int

Note:
not threadSafe, use an instance of RakNetRandom if necessary per thread
Returns:
an integer random value.
unsigned int reloadMT ( void  )
void seedMT ( unsigned int  seed)

Initialise seed for Random Generator

Note:
not threadSafe, use an instance of RakNetRandom if necessary per thread
Parameters:
[in]seedThe seed value for the random number generator.

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net