Booom...........

LabNotes and Random Thoughts...............
Showing posts with label random. Show all posts
Showing posts with label random. Show all posts

Thursday, August 27, 2015

sampling some data using cmdline python

randomly picking some 300 keeg values from a file using command line python

python -c "import random; print [i.strip() for i in random.sample(open('keeg_ids', 'r').readlines(), 300)] "