Counter.select

Returns a random token, distributed based on the counter values. Specifically, a token with a higher counter is more likely to be chosen than a token with a counter lower than it. If the counter table is empty, null is returned instead.

  1. T select [@property getter]
    struct Counter(T)
    @property
    T
    select
    ()
    ()
    if (
    isAssignable!(T, typeof(null))
    )
  2. Nullable!(Unqual!T) select [@property getter]

Meta