Migrate `random_` from the TH to Aten (CPU and CUDA) (#33663)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33663
Test Plan: Imported from OSS
Differential Revision: D20056350
Pulled By: pbelevich
fbshipit-source-id: f9859b79ffdec70c48d6ee3ec70fd6fad593a9f5