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