My Project
FastRandom.h
1 #pragma once
2 
3 class FastRandom
4 {
5 public:
6  FastRandom(int32 seed);
7  FastRandom();
8  void Init(int32 seed);
9 
10  int32 randomLong();
11  double randomDouble();
12 
13  float random();
14  int32 random(int32 from, int32 to);
15 
16  // Returns a random value as boolean.
17  bool randomBoolean();
18 
23  std::string randomCharacterString(int length);
24 
25  // Calculates a standardized normal distributed value (using the polar method).
26  double standNormalDistrDouble();
27 
28  static double randomNoise(int32 x, int32 y, int32 z, int32 seed);
29 
30 
31 public:
32  uint32 m_seed;
33 };
34 
std::string randomCharacterString(int length)
Returns a random character string with a specified length.
Definition: FastRandom.cpp:56
Definition: FastRandom.h:3