Package-level declarations

Types

Link copied to clipboard
interface RandomSelector<E>

A generic interface for selecting random elements from a collection, supporting both uniform and weighted selection.

Link copied to clipboard
interface Weighted

Represents an object that has an associated weight used for weighted random selection.

Link copied to clipboard
typealias Weighter<E> = (E) -> Double

A type alias for a function that computes the weight of an object for weighted random selection.

Functions

Link copied to clipboard
fun main()