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