random

fun random(): Random

Shortcut for RandomizedContext.getRandom. Even though this method is static, it returns per-thread Random instance, so no race conditions can occur.

It is recommended that specific methods are used to pick random values.