module WeightedRandom

Defined in:

weightedrandom.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Class Method Summary

Constructor Detail

def self.new(weights : Array(T)) : WeightedRandom(Int32) forall T #

[View source]
def self.new(weights : Hash(K, V)) : WeightedRandom(K) forall K, V #

[View source]

Class Method Detail

def self.indexed(weights : Array(T)) : WeightedRandom(Int32) forall T #

[View source]
def self.keyed(weights : Hash(K, V)) : WeightedRandom(K) forall K, V #

[View source]