Skip to content

shuffle

Module: strata.utils • Kind: function
Source: strata/utils/random.mojo

def shuffle[T: Deinitable & Copyable](mut list: List[T], seed: Int = 42)
from strata.utils import shuffle

In-place Fisher-Yates shuffle on a List.