I wrote a little program for a friend of mine that will randomly display a new guitar chord in intervals of the user's choosing. The only issue with it is that the random function produces the same exact "random" results every time the program is run. Right now I'm doing
rand()%20
. Any other way of doing this that will produce truly random numbers?