@ironarachne/rng
    Preparing search index...

    Interface WeightedEntry<T>

    Represents an entry in a weighted list.

    interface WeightedEntry<T> {
        commonality: number;
        value: T;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    commonality: number

    The weight of the entry. Higher values mean the entry is more likely to be selected.

    value: T

    The value of the entry.