# WeightedGenerator\[T: T\]
<span class="source-link">[[Source]](src/pony_check/gen_obj.md#L-0-95)</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)

---

