Module Name:random
● randrange()
◎ randrange(x)
return a random integer value between 0
and x-1
the return value of randrange(5)
could be:
0, 1, 2, 3, 4
◎ randrange(low, high)
return a random integer value between low
and high-1
the return value of randrange(-5,
5) could be:
-5, -4, -3, -2, -1, 0, 1, 2, 3, 4
全站熱搜
留言列表