Revert createRandomGenerator function creation; no longer needed