command line utility for uniformly sampilng from a stream with known number of elements