Recipes
Each recipe starts from a concrete problem, shows a working solution, and links back to the Reference pages for the constructs it uses.
| Recipe | Problem |
|---|---|
| Constrain Every Array Element | Apply one constraint to each element of a random array |
| Constrain the Sum of an Array | Make random array elements add up to a given total |
Unique Random Values with shuffle() |
Draw distinct random values without a large unique constraint |
| Iterate over a Literal Sequence | Loop over fixed values without declaring a collection |
| Avoid Overflow when Left-Shifting | Keep shifted values from overflowing the operand width |