txt: ## mixy.md
  role Mixy
  
  Collection of distinct objects with Real weights
  
  ```raku
  role Mixy does Baggy { }
  ```
  
  A role for collections of weighted values. See [`Mix`](/type/Mix) and [`MixHash`](/type/MixHash). `Mixy` objects differ from [`Baggy`](/type/Baggy) objects in that the weights of `Mixy` are [`Real`](/type/Real)s rather than [`Int`](/type/Int)s.
  
  # [Methods](#role_Mixy "go to top of document")[§](#Methods "direct link")
  
  ## [method roll](#role_Mixy "go to top of document")[§](#method_roll "direct link")
  
  ```raku
  method roll($count = 1)
  ```
  
  Similar to a [`Bag`](/type/Bag).roll, but with [`Real`](/type/Real) weights rather than integral ones.
  
  ## [method pick](#role_Mixy "go to top of document")[§](#method_pick "direct link")
  
  ```raku
  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](#role_Mixy "go to top of document")[§](#method_grab "direct link")
  
  ```raku
  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](#role_Mixy "go to top of document")[§](#method_kxxv "direct link")
  
  ```raku
  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.
  
  # [See Also](#role_Mixy "go to top of document")[§](#See_Also "direct link")
  
  [Sets, Bags, and Mixes](/language/setbagmix)
  
  # [Typegraph](# "go to top of document")[§](#typegraphrelations "direct link")
  
  Type relations for `Mixy`
  
  
  
  raku-type-graph
  
  
  
  Mixy
  Mixy
  
  
  Baggy
  Baggy
  
  
  Mixy->Baggy
  
  
  
  Associative
  Associative
  
  
  QuantHash
  QuantHash
  
  
  QuantHash->Associative
  
  
  
  Baggy->QuantHash
  
  
  
  Mu
  Mu
  
  
  Any
  Any
  
  
  Any->Mu
  
  
  
  Mix
  Mix
  
  
  Mix->Mixy
  
  
  
  Mix->Any
  
  
  
  MixHash
  MixHash
  
  
  MixHash->Mixy
  
  
  
  MixHash->Any
  
  [Expand chart above](/assets/typegraphs/Mixy.svg)
  