Function to return a random number between x and y
static int give_random_number ( int l , int r ) { Random rnd = new Random ( ) ; int num = rnd . Next ( l , r ) ; int x = ( int ) ( num % ( r - l + 1 ) + l ) ; return x ; }