Skip to content
October 16, 2012 / gameofslaves

Update – of Randomness and choices


My planned processes for how things will work in Game of Slaves will require a lot of random number generation and database access.  Fortunately, MySQL can handle the database hits like a champ.  Unfortunately, random numbers are hard on the host server.  One suggestion I found was to generate a good sized list of random numbers, then have the game engine just pull from that list.

There’s definitely some merit to that notion, but I am concerned about repetition once you reach the tail end of the list and loop around to the head again.

I guess I’ll have to wait to see if realtime generation of randoms has an actual impact on server performance.

…of course, this is not an issue if I use Java…  Hrm.

(As a side note, up until now, I was leaning toward using PHP or Perl.  BLAST IT!)

– C

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.