32. Getting legacy pseudo-random generator from new ones of JDK 17 A legacy pseudo-random generator such as Random, SecureRandom, or…