Exemplo n.º 1
0
 public void Reset(System.Random random)
 {
     try
     {
         PriceHistory.Reset(random);
         MinPrice = MIN_PRICE + (random.Next(1000) / 100);
         MaxPrice = MAX_PRICE - (random.Next(1000) / 100);
         if (random.Next(100) > 95)
             Price = random.Next(MAX_INITIALIZE_PRICE * 5) + random.NextDouble();
         else
             Price = random.Next(MAX_INITIALIZE_PRICE) + random.NextDouble();
         Available = random.Next(MAX_AVAILABLE);
         OwnedByPlayers = 0;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }