Fix comparison for non-integer numbers

Casting to integers makes 0.7 <= 0.2 true and 0.1 < 0.9 false.
Remove v_range as it is obsolete

CFuncs no longer have Value overhead, so this one doesn't need to be
cached.
Add Mersenne twister

Hopefully, this can replace rand() in the long run.