标签:des io ar art ad python on sp
random.randrange(stop)random.randrange(start, stop[, step])
Return a randomly selected element from range(start, stop, step). This is equivalent to choice(range(start, stop, step)), but doesn’t actually build a range object.
>>> import random >>> print random.randrange(1,10+1)
random.randint(a, b)
Return a random integer N such that a <= N <= b.
标签:des io ar art ad python on sp
原文地址:http://www.cnblogs.com/hwei/p/3919358.html