Random number
ÀH¾÷¼Æ: n = rand() % x + y;

Q1: n = rand();
Q2: n = rand() % + ; // double-click (+1)
Q3: n = ...
Q4: n = rand() % - rand() % ;