def shuffled(iterable, **kwargs):
 seed(kwargs.get('seed'))
 return sorted(list(iterable), key=(lambda x: random()))

def shuffled ( iterable , ** kwargs ) : seed ( kwargs . get ( 'seed' ) ) return sorted ( list ( iterable ) , key = ( lambda x : random ( ) ) )
returns a copy of the given list with the items in random order .