/// <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; }
private extern static IntPtr TCOD_random_new_from_seed(RandomGeneratorTypes type, uint seed);
/// <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; }
private extern static IntPtr TCOD_random_new(RandomGeneratorTypes type);
private static extern IntPtr TCOD_random_new_from_seed(RandomGeneratorTypes type, uint seed);
private static extern IntPtr TCOD_random_new(RandomGeneratorTypes type);