Clarify docs
This commit is contained in:
parent
7d00896b46
commit
806472cc99
@ -7,6 +7,9 @@ import java.util.random.RandomGenerator
|
|||||||
*
|
*
|
||||||
* Internal state is presented as 64-bit integer, and high-order bits of internal state are
|
* Internal state is presented as 64-bit integer, and high-order bits of internal state are
|
||||||
* used to generate numbers.
|
* used to generate numbers.
|
||||||
|
*
|
||||||
|
* Generally shouldn't be used, and instead [PCG32Random] should be used, considering the latter has same memory
|
||||||
|
* requirements but has way better statistical properties.
|
||||||
*/
|
*/
|
||||||
open class LCG64Random(protected var seed: Long) : RandomGenerator {
|
open class LCG64Random(protected var seed: Long) : RandomGenerator {
|
||||||
override fun nextLong(): Long {
|
override fun nextLong(): Long {
|
||||||
|
@ -3,7 +3,7 @@ package ru.dbotthepony.kommons.random
|
|||||||
import java.util.random.RandomGenerator
|
import java.util.random.RandomGenerator
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PCG XSH RR 32-bit (64-bit state) random generator, which has better statistical properties
|
* PCG XSH RR 32-bit (64-bit state) random generator, which has way better statistical properties
|
||||||
* than plain [LCG64Random] generator
|
* than plain [LCG64Random] generator
|
||||||
*/
|
*/
|
||||||
open class PCG32Random(protected var seed: Long) : RandomGenerator {
|
open class PCG32Random(protected var seed: Long) : RandomGenerator {
|
||||||
|
Loading…
Reference in New Issue
Block a user