要产生30-50之间的随机整数(包括30和50),下列表达式正确的是()

A.int(rnd*20+30) B.int(rnd*21+30) C.int (rnd*31+20) D.int(rnd*50)

时间:2023-06-10 09:31:57

相似题目