For getting the random numbers I have a function getrand100() which returns a random number in the range of 1-100.
How can I get a random number between ranges 1-20 and 1-200 with the same function?
For 1-20 I can apply:
if(num>=1 && num <=20) then accept else reject
But what should I do for the 1-200 range?
I would propose
for the first case (20) and
for the latter (200).