I'm not a programmer, but I'm very involved haha. A long time ago I created a random number indicator, now I need it (I deleted it), now I do not know how I did it. number = random generated number.
I have tried with:
int number = Random(1,5);
int number = rand(1,5);
int number = Random ()% 100 + 1;
int number = rand()% 100 + 1;
However, he tells me that "Rand" does not exist in the context, I think it is because "it is not" the "stdlib.h". I repeat I do not know much about programming. And "Random" I do not know what it is, it tells me that "it uses a variable that does not". But I remember, some time ago I managed to do the random number, someone could help me. ? Very thanks and regards.
Comment