getRandom

static Optional<WorldgetRandom(Predicate<World> filter)

Gets a random world that matches the specified filter

Return

a random world matching the specified filter

Parameters

filter

the world filter

static Optional<WorldgetRandom(Array<int> worldNumber)

Gets a random world with one of the specified world numbers

Return

a random world with one of the specified world numbers

Parameters

worldNumber

the world numbers