​​Generate Random Floating Point Number



Use the NextDouble() method to get a random floating-point number between 0.0 to 1.0, as shown below.