Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Attributes
cat::StandardRand Class Reference

#include <StdRand.hpp>

List of all members.

Public Member Functions

u16 rand ()
u16 randu ()
float sfrand ()
void srand16 (u16 ns)
void srand32 (u32 ns)
 StandardRand (u32 ns=0)

Protected Attributes

s32 seed

Detailed Description

Definition at line 38 of file StdRand.hpp.


Constructor & Destructor Documentation

cat::StandardRand::StandardRand ( u32  ns = 0) [inline]

Definition at line 44 of file StdRand.hpp.

References seed.

{ seed = ns; }

Member Function Documentation

u16 cat::StandardRand::rand ( )
u16 cat::StandardRand::randu ( )
float cat::StandardRand::sfrand ( )
void cat::StandardRand::srand16 ( u16  ns) [inline]

Definition at line 47 of file StdRand.hpp.

References seed.

{ seed = ns; } // 16-bit version (yup)
void cat::StandardRand::srand32 ( u32  ns) [inline]

Definition at line 46 of file StdRand.hpp.

References seed.

{ seed = ns; } // 32-bit version

Member Data Documentation

Definition at line 41 of file StdRand.hpp.

Referenced by srand16(), srand32(), and StandardRand().


The documentation for this class was generated from the following file:

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