Class Long2IntArray

java.lang.Object
org.apache.commons.rng.simple.internal.Long2IntArray
All Implemented Interfaces:
SeedConverter<java.lang.Long,​int[]>

public class Long2IntArray
extends java.lang.Object
implements SeedConverter<java.lang.Long,​int[]>
Uses a long value to seed a SplitMix64 RNG and create a int[] with the requested number of random values.
Since:
1.0
  • Constructor Summary

    Constructors 
    Constructor Description
    Long2IntArray​(int size)  
  • Method Summary

    Modifier and Type Method Description
    int[] convert​(java.lang.Long seed)
    Converts seed from input type to output type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Long2IntArray

      public Long2IntArray​(int size)
      Parameters:
      size - Size of the output array.
  • Method Details

    • convert

      public int[] convert​(java.lang.Long seed)
      Converts seed from input type to output type.
      Specified by:
      convert in interface SeedConverter<java.lang.Long,​int[]>
      Parameters:
      seed - Original seed value.
      Returns:
      the converted seed value.