March 04, 2012

YET ANOTHER top rotation tweak

If you only call a random number generator once, then it's little more than a hash of whatever it uses as a seed. And it isn't necessarily a very good hash. So I decided to stop using that completely.

The new approach for picking an image is to use the number of milliseconds since midnight, with a small amount of numerical tweaking. While I was messing around with it, I saw several images I know I hadn't ever seen before. So I think it'll work better, and have a flatter response curve.

As always, you'll need to force a complete reload of the page, or dump your browser cache, if you want the latest version.

Posted by: Steven Den Beste in Site Stuff at 09:50 PM | Comments (5) | Add Comment
Post contains 120 words, total size 1 kb.

1 In two dozen quick reloads, about 80% of the images were completely new to me.

-j

Posted by: J Greely at March 04, 2012 10:28 PM (2XtN5)

2 There's one more small change I'm going to make, and then I think this version will suffice.

Posted by: Steven Den Beste at March 05, 2012 09:27 AM (+rSRq)

3 OK, last update for the time being. The latest version is #22, and it says that in the information popup (mouse hover on the upper left corner).

Posted by: Steven Den Beste at March 05, 2012 09:39 AM (+rSRq)

4 There's something wrong. Sorry; I'll go fix it.

Posted by: Steven Den Beste at March 05, 2012 09:40 AM (+rSRq)

5 OK, all fixed. (Sheesh, that was stupid.)

Posted by: Steven Den Beste at March 05, 2012 09:43 AM (+rSRq)

Hide Comments | Add Comment

Enclose all spoilers in spoiler tags:
      [spoiler]your spoiler here[/spoiler]
Spoilers which are not properly tagged will be ruthlessly deleted on sight.
Also, I hate unsolicited suggestions and advice. (Even when you think you're being funny.)

At Chizumatic, we take pride in being incomplete, incorrect, inconsistent, and unfair. We do all of them deliberately.

How to put links in your comment

Comments are disabled. Post is locked.
6kb generated in CPU 0.0125, elapsed 0.0261 seconds.
20 queries taking 0.018 seconds, 22 records returned.
Powered by Minx 1.1.6c-pink.