hpcflow.sdk.core.values.ensure_seed#

hpcflow.sdk.core.values.ensure_seed(seed)#

For methods that use a random seed, if the seed is not set, set it randomly so it can be recorded within the method args for reproducibility.

Parameters:

seed (int | list[int] | None)

Return type:

int | list[int]