Assignment 4 - Random Number Generation

1. Write a C program to solve each of the following problems.
(a) Generate 10 random odd integers between 1 and 10 inclusively.
(b) Generate 100 random 2-digit integers.
   
2.

Write a C program to generate 2 different random integers from 1 to 6 inclusively.

Sample Output
5
2

   
3. Write a C program to generate the following sample output.

Sample Output
Let's start to play the game with 3 dices
Your balance = $100

How much do you invest? $10
What is your expected outcome, big (1) or small (0)? 1
The points of the 3 dices are 2 1 6
It is small, an incorrect guess
Your balance = $90

How much do you invest? $120
How much do you invest? $20
What is your expected outcome, big (1) or small (0)? 1
The points of the 3 dices are 6 1 5
It is big, a correct guess
Your balance = $110
: