This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS4.2中如何产生随机数



用srand和rand,怎么生成一定范围内,比如1-10的随机数?