Free friday 8/28/26

Today, after finishing my assignment, I decided it would be interesting to learn how to make a classic, but simple game.
Rock, Paper, Scissors.

Sadly, I didn’t know how to make a Random function, so I decided to use Copilot to teach me a function for randomizing options between the 3.

with that, I learned one thing so far (with the time I had left today.)
srand(time(NULL));

 srand(time(NULL));

This makes a random seed based on time (milliseconds)

therefore, every time you open it, rather than the computer making a predictable pattern, since it looks at the numbers from within, it’ll randomize itself randomly.

Pretty cool, I’ll continue working on it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top