Using the function randint. The python function randint can be used to generate a random integer in a chosen interval [a,b]:
確定! 回上一頁