Example #1
0
unsigned long myrand_init(unsigned long s) 
{
  standard.seed(s);
  return s;
}
Example #2
0
	void seed(int i)
	{	generator.seed(i);
	}
Example #3
0
File: f.cpp Project: xhae/Contests
 // This is equivalent to srand().
 static void seed(uint64_t new_seed = std::mt19937_64::default_seed) {
     rng.seed(new_seed);
 }