I have one way,but I am sure this is not a good way;
u can redefine RAND_MAX,then after u got the randrom number,
divided the Rand_Max,It works.u can write a function to do this;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.