can the random method be parameterized?