Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float frandom(int min, int max) {
- #define ranmax 32767
- float minfac,dif;
- dif = min - max;
- minfac = dif / ranmax;
- return (minfac * rand()) + (max);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement