Occasionally people spade the underlying code for seeded random things in KoL. I recently did it for Voting Booth initiatives and it's previously been done for TCRS equipment enchantments. I'd like to add support for forecasting these sorts of things to mafia and ash!
I've written an equivalent of PHP 5.3's rand and srand which is attached. It was lots of fun! To make it useful though I need to also reimplement do mt_rand, which I will try to do now. It seems slaw had help from someone writing it in ASH which I will probably use as a base.
I've written an equivalent of PHP 5.3's rand and srand which is attached. It was lots of fun! To make it useful though I need to also reimplement do mt_rand, which I will try to do now. It seems slaw had help from someone writing it in ASH which I will probably use as a base.