# WeightedGenerator\[T: T\]
<span class="source-link">[[Source]](src/pony_check/generator.md#L-0-294)</span>

A generator with an associated weight, used in Generators.frequency.


```pony
type WeightedGenerator[T: T] is
  (USize val , Generator[T] box)
```

#### Type Alias For

* ([USize](builtin-USize.md) val , [Generator](pony_check-Generator.md)\[T\] box)

---

