generating a random number within range 0 to n where n can be > RAND_MAX

前端 未结 9 2064
梦毁少年i
梦毁少年i 2021-01-18 08:32

How can I generate a random number within range 0 to n where n can be > RAND_MAX in c,c++?

Thanks.

9条回答
提交回复
热议问题