Mega Code Archive

 
Categories / C# / Development Class
 

Get next random number in double

using System; using System.Windows.Forms; using System.Drawing; public class Test {   static void Main() {       Random roller = new Random();       double toHit = roller.NextDouble();       Console.WriteLine(toHit);   } }