pm_randon.h: fix conversion warning (int to float)
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
|||||||
v_new_seed = ( test > 0 ) ? test : test + 2147483647;
|
v_new_seed = ( test > 0 ) ? test : test + 2147483647;
|
||||||
return tmp;
|
return tmp;
|
||||||
};
|
};
|
||||||
float rand_01() { return float(rand()) / 2147483647; };
|
float rand_01() { return float(rand()) / 2147483647.0; };
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user