예제 #1
0
 /// <summary>
 /// Create new instance of a random number generator with a starting seed.
 /// </summary>
 /// <param name="seed">Intial Seed</param>
 /// <param name="type">Type of algorithm</param>
 public TCODRandom(RandomGeneratorTypes type, uint seed)
 {
     m_instance           = TCOD_random_new_from_seed(type, seed);
     m_globalInstanceUsed = false;
 }
예제 #2
0
 private extern static IntPtr TCOD_random_new_from_seed(RandomGeneratorTypes type, uint seed);
예제 #3
0
 /// <summary>
 /// Create a new instance of a random number generator with a specific algorithm
 /// </summary>
 /// <param name="type">Type of algorithm</param>
 public TCODRandom(RandomGeneratorTypes type)
 {
     m_instance           = TCOD_random_new(type);
     m_globalInstanceUsed = false;
 }
예제 #4
0
 private extern static IntPtr TCOD_random_new(RandomGeneratorTypes type);
예제 #5
0
 /// <summary>
 /// Create new instance of a random number generator with a starting seed.
 /// </summary>
 /// <param name="seed">Intial Seed</param>
 /// <param name="type">Type of algorithm</param>
 public TCODRandom(RandomGeneratorTypes type, uint seed)
 {
     m_instance = TCOD_random_new_from_seed(type, seed);
     m_globalInstanceUsed = false;
 }
예제 #6
0
 /// <summary>
 /// Create a new instance of a random number generator with a specific algorithm
 /// </summary>
 /// <param name="type">Type of algorithm</param>
 public TCODRandom(RandomGeneratorTypes type)
 {
     m_instance = TCOD_random_new(type);
     m_globalInstanceUsed = false;
 }
예제 #7
0
 private static extern IntPtr TCOD_random_new_from_seed(RandomGeneratorTypes type, uint seed);
예제 #8
0
 private static extern IntPtr TCOD_random_new(RandomGeneratorTypes type);