Random number generator between 0 and 1

This is a discussion on Random number generator between 0 and 1 within the C# Programming forums, part of the General Programming Boards category; Can anyone help me to generate random number generator between 0 and 1?...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    38

    Random number generator between 0 and 1

    Can anyone help me to generate random number generator between 0 and 1?

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    38
    ok I was experiementing, and got the following working:



    Random rand = new Random();
    return rand.NextDouble; //returns a random number bw 0.0 and 1.0!

    Thanks anyway!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21