randfloat: support negtive value