role Mixy does Baggy { }
A role for collections of weighted values. See Mix
and MixHash
. Mixy
objects differ from Baggy
objects in that the weights of Mixy
are Real
s rather than Int
s.
Methods§
method roll§
method roll($count = 1)
Similar to a Bag
.roll, but with Real
weights rather than integral ones.
method pick§
method pick($?)
Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.
method grab§
method grab($?)
Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.
method kxxv§
method kxxv()
Throws an exception. The feature is not supported on the type, since there's no clear value to subtract from non-integral weights, to make it work.