Public Member Functions
ash::Seed< N, M, MATRIX_A > Struct Template Reference

Random number seeder. More...

#include <ash/random.h>

List of all members.

Public Member Functions

 Seed (uint32 s)
uint32 gen_uint32 () const
 Generate a random number on [0,0xFFFFFFFF]-interval.
uint64 gen_uint64 () const
 Generate a random number on [0,0xFFFFFFFFFFFFFFFF]-interval.
float gen_float () const
double gen_double () const

Detailed Description

template<uint16 N = 624, uint16 M = 397, uint32 MATRIX_A = 0x9908B0DF>
struct ash::Seed< N, M, MATRIX_A >

Random number seeder.

Uses the Mersenne Twister:

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

© 2012   AshTL
Licensed under  AGPLv3
Hosted by  Get AshTL at Fast, secure and Free Open Source software downloads
Generated by  doxygen 1.7.4