Do not call rand
during sysimage precompilation
#56227
Merged
rand
during sysimage precompilation
#56227