Class Long2LongArray
- java.lang.Object
-
- org.apache.commons.rng.simple.internal.Long2LongArray
-
- All Implemented Interfaces:
SeedConverter<java.lang.Long,long[]>
public class Long2LongArray extends java.lang.Object implements SeedConverter<java.lang.Long,long[]>
Uses aLongvalue to seed aSplitMix64RNG and create along[]with the requested number of random values.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description Long2LongArray(int size)
-
Method Summary
Modifier and Type Method Description long[]convert(java.lang.Long seed)Converts seed from input type to output type.
-
-
-
Method Detail
-
convert
public long[] convert(java.lang.Long seed)
Converts seed from input type to output type.- Specified by:
convertin interfaceSeedConverter<java.lang.Long,long[]>- Parameters:
seed- Original seed value.- Returns:
- the converted seed value.
-
-