DataCategorical.random_samples DataCategorical.random_samples(n_samples: int) → ndarray[source] Returns random samples from the domain of the data object. Parameters: n_samples (int) – Number of samples to return. Returns: np.ndarray – Random samples (number, dim) from the domain of the data object.