Interval.random_samples

Interval.random_samples(size: int | Tuple[int, int] = 1) ndarray[source]

Returns samples chosen with random sampling from the domain.

Parameters:

size (Union[int, Tuple[int, int]], optional, default=1) – Output shape. If the given shape is, e.g., (m, n), then m * n samples are drawn.

Returns:

np.ndarray – The generated random samples from the domain.