fix a bug when drawing samples. The random float value can be slightly (epison) bigger than 1.0f. I added 1.0f - FLT_SPSILON

Signed-off-by: Enliang <ezheng@cs.unc.edu>