use the random.sample() function for an alt. impl