calbri / TetrisAVR

CSSE2010 Assignment - Good copy
1 stars 0 forks source link

Random Number Seeding #14

Closed calbri closed 8 years ago

calbri commented 8 years ago

Add a method for seeding the random number generator so that the game is not always the same after Reset. (See the srandom() function in stdlib.h) Seeding is often done based on a timer value – e.g. wait for a user to press a button to start the game and use the time that happens as the seed value.