[LTC] Lower random_.to and random_.from to TorchScript (#67296)
Summary:
This commit lowers random_.to and random_.from to TorchScript. Since they
have the Generator as an optional parameter which cannot be regconized by
TorchScript, we need to fallback to eager mode if it presents. We cannot
code-gen these ops because of the eager fallback.
Test Plan:
lazy_tensor_core/test/cpp/build/test_ptltc --gtest_filter=AtenLtcTsTensorTest.TestRandom*