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

Pure function of a `Randomness` source that produces a random value. The
framework records every random decision during generation, then replays
generators against mutated decision sequences to produce shrunk values.


```pony
trait box GenObj[T: T]
```

## Public Functions

### generate
<span class="source-link">[[Source]](src/pony_check/gen_obj.md#L-0-11)</span>


Produce a random value from the given source of randomness.


```pony
fun box generate(
  rnd: Randomness ref)
: T^ ?
```
#### Parameters

*   rnd: [Randomness](pony_check-Randomness.md) ref

#### Returns

* T^ ?

---

