unitxt.random_utils module

unitxt.random_utils.get_seed()[source]
unitxt.random_utils.new_random_generator(sub_seed: Any) Random[source]

Get a generator based on a seed derived from the default seed.

The purpose is to have a random generator that provides outputs that are independent of previous randomizations.