Class RngVal<T extends Random>

java.lang.Object
org.kink_lang.kink.HostResultCore
org.kink_lang.kink.Val
org.kink_lang.kink.internal.mod.random.RngVal<T>
Type Parameters:
T - the type of RNG implementation.
All Implemented Interfaces:
HostResult
Direct Known Subclasses:
PrngVal

public class RngVal<T extends Random> extends Val
Random number generator val.
  • Method Details

    • of

      public static RngVal<Random> of(Vm vm, Random random, String typeTag)
      Makes a random number generator val.
      Parameters:
      vm - the vm.
      random - the RNG.
      typeTag - the type tag such as "csrng".
      Returns:
      a random number generator val.