Random number generator

Call:

doubledres = rand();


Returns a random number between 0 and 1;