choose_two_without_replacement#
- ctapipe.fitting.choose_two_without_replacement(rng, n)[source]#
Draw two distinct random integers from
[0, n)without replacement.- Parameters:
- rngnumpy.random.Generator
Random number generator to draw from.
- nint
Number of possible values to choose from; values are drawn from
[0, n).
- Returns:
- valuesnp.ndarray
Array of two distinct integers, each in
[0, n), drawn uniformly at random without replacement.