MADS: Introduce another getRandomNumber function with 2 parameters