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