holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

Override random and shuffled in Component #59

Closed holgerbrandl closed 1 year ago

holgerbrandl commented 1 year ago

This will help to reduce randomization errors

    public inline fun <T> Collection<T>.random(): T {
        return random(env.random)
    }
holgerbrandl commented 1 year ago

Fixed in 0.9, see https://www.kalasim.org/changes/#v09