added floating rand() in RC