Generate different random -ve +ve number with php rand()?
I have asked a question about random generating -ve +ve decimal value here:
How to generate a random positive or negative decimal?
But now i have another more challenging problem. May I know how can I generate random integer with -ve +value with a different set? like from -552 to 22开发者_StackOverflow社区00 as an example?
Have you tried $rand = rand(-552, 2200);
?
精彩评论