coba.random.shuffle

coba.random.shuffle(items: Iterable[Any], inplace: bool = False) Sequence[Any]

Shuffle the order of items in a sequence.

Parameters:
  • items – The items that are to be shuffled.

  • inplace – Shuffle the items in their given container.

Returns:

A new order of the original items.