Evaluate rand using a real number as argument