예제 #1
0
파일: Car.cs 프로젝트: negrime/AutoBase
 public override void Generate()
 {
     tonnage  = rand.Next(500, 4000);
     brand    = brands[rand.Next(0, brands.Length)];
     breakage = Breakage.Create((BreakageType)rand.Next(2));
 }
예제 #2
0
파일: Car.cs 프로젝트: negrime/AutoBase
 public override void Generate()
 {
     isAwd    = rand.Next() % 2 == 0;
     brand    = brands[rand.Next(0, brands.Length)];
     breakage = Breakage.Create((BreakageType)rand.Next(2));
 }