what i want to do is show the user the random number that is generated and then i want them to have to type exactly what random number was generated but thats the problem i dont know how to do that,i tried here: if(type == rand()){ so basically i want them to type in the outputted number.
Ok but i need to use it in an if statement and thats the only part where im confused because the program needs to know what numbers were generated by the random number generator and when the user types them in it recognizes them