Close #28476: Reuse math.factorial() in test_random

Patch written by Francisco Couzo.
1 file changed