public class Long2IntArray extends Object implements Seed2ArrayConverter<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.
|
int[] |
convert(Long seed,
int outputSize)
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.public int[] convert(Long seed, int outputSize)
convert in interface Seed2ArrayConverter<Long,int[]>seed - Original seed value.outputSize - Output size.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.