def selRandom(individuals, k):
 return [random.choice(individuals) for i in xrange(k)]

def selRandom ( individuals , k ) : return [ random . choice ( individuals ) for i in xrange ( k ) ]
select *k* individuals at random from the input *individuals* with replacement .