random#

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

Create random orientations.

Parameters:
shape

Shape of the orientations.

symmetry

Crystal symmetry. If not given, the returned orientation(s) is given only the identity symmetry operation, 1 (C1).

Returns:
O

Random orientations.