About An Error!

While exploring the glossary I found something worng. I was checking the if…else statement in glossary but the example of the if…else statement was a little bit irritating. I found that it was coded as pickRandom(10) but saying that the code will pick a number between 1 to 10 but how can it be possible as in the parentheses of pickRandom function it’s only 10 ?