Class RngVal<T extends Random>

  • 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 Detail

      • 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.