Throw Exception when randomNumber is used instead of numberBetween

Refs f9713bb