Should be written with the program which will be programmed lotto game in which the generated 7 random numbers in the range of numbers from 1 to 39 (valid numbers are from 1 to 39). Generating numbers must be stored in a vector.
Design of the program will be:
- The function main () generated numbers. Random numbers generated by calling the function getRandNumb () [whom you are ready, listed below]. For each generated number, it should be checked whether the first number is generated and found in vectors, through Control function, which you have to write.
- After seven numbers to be generated and vector be created through SortoNumrat function, which you have to create, will be the Lotos sotrimi numbers.
- Pressing the vector must be done through ShtypVektorin function.