开发者

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); ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜