Fixed random input generation for dynamicDispatch.