Fixed export for random (#28470)
Summary:
[ONNX] Fixed export for random generator ops
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28470
Reviewed By: hl475
Differential Revision: D18350224
Pulled By: houseroad
fbshipit-source-id: 540a07f7def335f66808af8c360b72261d15635b