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