Hi my name is weazelknievel and I'm just starting to get into programming and for my first project I want to do a random generator for league of legends I want it to randomly select a character. But the problem is that I never really programed before and don't really know how. So if there's anyone that could give some tips or something I'd really appreciate it. Thanks.
there is the classic function rand() % 4 , for instance this will give you a number between 0 and 3 , but the seed will always be the same , except if you had at the beginning of your main this srand((unsigned)time(NULL)); .
Also on c++11 there are uniform distribution functions.
If you don't know how to program, you have to learn how to do that before you can actually make a program. Read the C++ Tutorial here: http://www.cplusplus.com/doc/tutorial/