Skip to content

Instantly share code, notes, and snippets.

PseudoRandomDistribution = {}
PseudoRandomDistribution.__index = PseudoRandomDistribution
function PseudoRandomDistribution:New(nChance)
local obj = {
counter = 0,
chance = nChance,
const = self:CalculateConstant(nChance)
}
setmetatable(obj,self)