klyn.math.Random.shuffle
method
public static shuffle<T>(values as List<T>) as Void:
Description

Randomly shuffles a mutable list in-place.

Parameters
ParameterDescription
valuesList to shuffle.
Throws
  • ValueError if the list is null.
Example
import klyn.math

values = [1, 2, 3, 4]
Random.shuffle(values)
print(values.size)  # 4