骰子是一个正六面体,分别用1~6代表这六个面,掷一次骰子出现的数可表示为().
A:int(rnd*6+1)
B:int(rnd*6)
C:int(rnd*7)
D:int(rnd(6)+1)
出自:计算机科学