View Single Post
  #1  
Old 12-08-2011, 10:32 AM
Octocat Octocat is offline
Approved Member
 
Join Date: Dec 2011
Posts: 22
Default

More concise and economical way to generate random numbers:

Code:
internal ISectionFile RandomiseMission()
{
    var random = new Random(Environment.TickCount);

    ...
    value = random.Next(minBreezeActivity, maxBreezeActivity).ToString();

    ...
    value = random.Next(minThermalActivity, maxThermalActivity).ToString();

    ...
}

Last edited by Octocat; 12-08-2011 at 10:40 AM.
Reply With Quote