This is a follow on from a previously posted question:
How to generate a random number in C?
I wish to be able to generate a random number from within a part
Will return a floating point number in the range [0,1]:
#define rand01() (((double)random())/((double)(RAND_MAX)))