User talk:Aichon: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
Line 175: Line 175:
::Hmm. What about one that would generate a pseudorandom integer? --{{:User:Alexander Dawkins/Sig}} 21:15, 13 August 2010 (BST)
::Hmm. What about one that would generate a pseudorandom integer? --{{:User:Alexander Dawkins/Sig}} 21:15, 13 August 2010 (BST)
:::We don't have a RNG in the wiki software, unfortunately, and if you wanted to make one yourself, the best you could probably do is seed it with a timestamp, but I don't see how you could parse...actually, come to think of it, it ''might'' be possible to get minutes, but that would be the best you could do, and that would be worthless for a RNG. Plus, with the way that the wiki handles caches, it wouldn't work well anyway, since pages can stay cached for hours or days at a time. {{User:Aichon/Signature}} 23:09, 13 August 2010 (BST)
:::We don't have a RNG in the wiki software, unfortunately, and if you wanted to make one yourself, the best you could probably do is seed it with a timestamp, but I don't see how you could parse...actually, come to think of it, it ''might'' be possible to get minutes, but that would be the best you could do, and that would be worthless for a RNG. Plus, with the way that the wiki handles caches, it wouldn't work well anyway, since pages can stay cached for hours or days at a time. {{User:Aichon/Signature}} 23:09, 13 August 2010 (BST)
::::Not minutes, just the current time. Best way might be to nest together some switches based on hour, day and month so that it ''seems'' random but is completely pre-ordained. {{User:Misanthropy/Sig}} 23:23, 13 August 2010 (BST)

Revision as of 22:23, 13 August 2010

Aichon:Talk
Aichon
ˈīˌkän :Talk