Thread: 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
Website Security Test