torch_ecg.utils.uniform#
- torch_ecg.utils.uniform(low: float | int, high: float | int, num: int) List[float][source]#
Generate a list of numbers uniformly distributed.
- Parameters:
- Returns:
Array of randomly generated numbers with uniform distribution.
- Return type:
List[float]
Examples
>>> arr = uniform(0, 1, 10) >>> all([0 <= x <= 1 for x in arr]) True