package util
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
trait
ThreadLocalRandom extends AnyRef
A collection of useful functions to generate random values for all types Utilizes Java's ThreadLocalRandom rather than the Regular Random
A collection of useful functions to generate random values for all types Utilizes Java's ThreadLocalRandom rather than the Regular Random
Per my current understanding while the regular Java random functions is thread safe If used concurrently the regular random could contention and thus performance loss Using ThreadLocalRandom's implementation of random solves that problem
- Since
2.12
Value Members
- object ThreadLocalRandom extends ThreadLocalRandom