skrf.mathFunctions.rand_c
- skrf.mathFunctions.rand_c(*size, rng=None)[source]
Creates a complex random array of shape s.
The bounds on real and imaginary values are (-1,1)
- Parameters:
s (list-like) – shape of array
rng (
numpy.random.Generatoror None) – Any random number generator accepted bynumpy.
- Return type:
Examples
>>> x1 = rf.rand_c(2, 2) >>> x2 = rf.rand_c(2, 2, np.random.default_rng(seed=42))