the challenge is to generate the most random sequence of integers you can given some maximum, n.
the primary restricion: no modulus function! (that's just too easy.)
since most built in RNG functions use this, this means no built in ones either.
your program will be evaluated on 3 things.
length (how long your program goes before it repeats. (note: every submmited alrogithm should repeat eventually. it's okay if it doesn't repeat within the alloted number of runs, but it should repeat.))
distribution (how evenly it gets to all or most numbers. (a score of 1 to n))
space (the average distance between the next showing of a particualar value)
the score will be: length/n *distribution *space.
for the purposes of this contest, n will be 100, 1,000, and 10,000. each generator will be run 10,000, 1,000,000 and 100,000,000 times respectively. questions/ comments?
Question
Guest
the challenge is to generate the most random sequence of integers you can given some maximum, n.
the primary restricion: no modulus function! (that's just too easy.)
since most built in RNG functions use this, this means no built in ones either.
your program will be evaluated on 3 things.
length (how long your program goes before it repeats. (note: every submmited alrogithm should repeat eventually. it's okay if it doesn't repeat within the alloted number of runs, but it should repeat.))
distribution (how evenly it gets to all or most numbers. (a score of 1 to n))
space (the average distance between the next showing of a particualar value)
the score will be: length/n *distribution *space.
for the purposes of this contest, n will be 100, 1,000, and 10,000. each generator will be run 10,000, 1,000,000 and 100,000,000 times respectively. questions/ comments?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.