# tfl.test_utils.sample_uniformly

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/test_utils.py#L158-L186) |

Deterministically generates num_point random points within bounds.

    tfl.test_utils.sample_uniformly(
        num_points, lower_bounds, upper_bounds
    )

Points will be such that:
lower_bounds\[i\] \<= p\[i\] \<= upper_bounds\[i\]

Number of dimensions is defined by lengths of lower_bounds list.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num_points` | number of points to generate. |
| `lower_bounds` | list or tuple of lower bounds. |
| `upper_bounds` | list or tuple of upper bounds. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| List of generated points. ||

<br />