What used to be Random.GLOBAL_RNG is now Random.default_rng() (and also its thread-local I believe).
Random.GLOBAL_RNG
Random.default_rng()