random#

classmethod Misorientation.random(shape: int | tuple = 1, symmetry: Tuple[Symmetry, Symmetry] | None = None) Misorientation[source]#

Create random misorientations.

Parameters:
shape

Shape of the misorientations.

symmetry

Tuple of two sets of crystal symmetries. If not given, the returned misorientation(s) is assumed to be transformation between crystals with only the identity operation, 1 (C1).

Returns:
M

Random misorientations.