MlbendSplit.shuffled_class: def of mlbend-split@0.1.1.0 Import: import mlbend-split@0.1.1.0/main.bend as MlbendSplit Lines 54-57 of mlbend-split@0.1.1.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-split@0.1.1.0/main.bend&start_line=54&end_line=57 import Base import bend-kit-random@0.1.0.1/random.bend as Rand # The rows of one class, shuffled by the generator. def shuffled_class(labels: List<&2, Nat>, +c: Nat, +seed: U32) -> List<&2, Nat>: shuffled_list(Rand.shuffle(~Nat, rows_of_class(labels, c, 0n, Nil{}), Rand.seed(U32.add(seed, U32.from_nat(c))))) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bend-kit-random@0.1.0.1/random.bend&name=seed https://jend.leeeet.dev/definition.txt?path=bend-kit-random@0.1.0.1/random.bend&name=shuffle https://jend.leeeet.dev/definition.txt?path=mlbend-split@0.1.1.0/main.bend&name=rows_of_class https://jend.leeeet.dev/definition.txt?path=mlbend-split@0.1.1.0/main.bend&name=shuffled_list