SeedConverter<java.lang.Long,int[]>
public class Long2IntArray extends java.lang.Object implements SeedConverter<java.lang.Long,int[]>
long
value to seed a SplitMix64
RNG and
create a int[]
with the requested number of random
values.Constructor | Description |
---|---|
Long2IntArray(int size) |
Modifier and Type | Method | Description |
---|---|---|
int[] |
convert(java.lang.Long seed) |
Converts seed from input type to output type.
|
public Long2IntArray(int size)
size
- Size of the output array.public int[] convert(java.lang.Long seed)
convert
in interface SeedConverter<java.lang.Long,int[]>
seed
- Original seed value.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.