コード例 #1
0
 public void TestRandomInt()
 {
     // I like this method because of it's ability to be deterministic random
     // the server can reseed it at any point and keep both -random- generators synced accross
     // computers
     GameGlobal.SeedRandomInt(1212, 3434, 42);
     int rnd1 = GameGlobal.NextRandomInt(100);
     int rnd2 = GameGlobal.NextRandomInt(100);
     int rnd3 = GameGlobal.NextRandomInt(100);
     int rnd4 = GameGlobal.NextRandomInt(100);
     int rnd5 = GameGlobal.NextRandomInt(100);
 }