First of first, hi to you all!
Now moving on to business...
I'm doing a private play-by-post rpg campaign for my gaming group. I've decided to use a homebrew system that requires a use of but one dice (d10) for the system to work.
I've been planning to use shortcodes for the dice but the problem is right here. I know how to create shortcodes and how to allow it in the comments and also how to generate a random number in php in many ways. But the problem is that just by having some random number pop up, the system also has to remember that number so it doesn't generate it on the fly on each page refresh. How would one store the number in the database or in a flat file so on a page refresh that randomly generated number actually stays the same?
Thanks in advanced for any help, hints, links, code snippets you might post!