阅读背景:

Python随机函数从值列表中选择一个新项

来源:互联网 

I need to fetch random numbers from a list of values in Python. I tried using random.choice() function but it sometimes returns same values consecutively. I want to return new random values from the list each time. Is there any function in Python that allows me to perform such an action ?I need to fetch random numbers from a list of v




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: