fixed flxmath.rand bugs