shuffle
Returns a new DataFrame
with rows in random order.
You can supply a kotlin.random.Random instance with a fixed seed for reproducible results.
df.shuffle()
df.shuffle(random: Random)
Examples
df
Deterministic shuffle using a fixed seed:
df.shuffle(Random(42))
18 September 2025