get_random_sample#

ReciprocalLatticeVector.get_random_sample(*args, **kwargs)[source]#

Return a random sample of a given size in a flattened instance.

Parameters:
Returns:

New, flattened instance of a given size with elements drawn randomly from this instance.

Return type:

new