Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Increment global state variable, add it to e, which is the number of milliseconds the game has been running modulo 300. Then set the margin size to that value. It's a simple pseudo-pseudorandom number generator.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: