Home > other >  Python take random number problem
Python take random number problem

Time:04-28

Want to ask you, I want to take 200 random Numbers within 0 to 10, with what method good ah tried to use the random. The sample (range (0, 10), 5) can only take 5 from 0 to 10 integers  , every brother please can some directions

CodePudding user response:

 [random randint (0, 10) for _ in range (200)] 
  • Related