Random.NextDouble() : Random « System « C# / C Sharp by API






Random.NextDouble()

  
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);
  }
}

   
    
  








Related examples in the same category

1.Random.Next()
2.Random.Next(range)