3 ms·
f() = (rand() + 1.0) - 1.0 and pray that your compiler isn't clever! Or you can actually randomize the fraction bits.
by dnautics 10y ago
f() = (rand() + 1.0) - 1.0
and pray that your compiler isn't clever! Or you can actually randomize the fraction bits.