Revert "use generics in random (#16283)" (#16291)
Revert "use generics in random (#16283)" (#16291)

This reverts commit 71e2a9e569ab3380fd057e4fc16e6d4ccd66f1f4.
dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim