rand¶
- MapdlMath.rand(nrow, ncol=None, dtype=<class 'numpy.float64'>)¶
Create a vector or matrix containing all random values
- Parameters
- Returns
Examples
Create a random vector.
>>> from ansys.mapdl.core import launch_mapdl >>> mapdl = launch_mapdl() >>> mm = mapdl.math() >>> vec = mm.rand(10)
Create a random matrix.
>>> mat = mm.rand(10, 10)