Interface IRandom<T>

interface IRandom<T> {
    Random(): undefined | T;
}

Type Parameters

  • T

Implemented by

Methods

Methods

  • Returns undefined | T

    A random item in the collection without removing it.