Sampling without replacement : Random : Development : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Development   » [  Random  ]  Screenshots 
 



Sampling without replacement



import random
print random.sample(xrange(100)10)   # sampling without replacement

           
       
Related examples in the same category
1.  Random integers produced by randrange. Random integers produced by randrange.
2.  random number generation random number generation
3.  Random Choice Random Choice
4.  Random float Random float
5.  Random integer chosen from range(6) Random integer chosen from range(6)
6.  Random float Random float
7.  Random integer chosen from range(6) Random integer chosen from range(6)








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.