pytemppack.utils.generate_random_array

generate_random_array(dims, seed=1234)[source]

Generate a random np.ndarray.

Parameters

dims (Tuple[int]) – The dimensions of the array.

Returns

The random array.

Return type

np.ndarray

Examples

>>> generate_random_array((3, 3))

Note

For more information on the randomness, see here.