![]() |
|
Tutorial Making your own Sig Randomizer - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: Tutorial Making your own Sig Randomizer (/Thread-Tutorial-Making-your-own-Sig-Randomizer) Pages:
1
2
|
RE: Making your own Sig Randomizer - Cyan - 01-23-2014 Will this really make your signatures random on the forums or no? Im kind of a noob :O RE: Making your own Sig Randomizer - 0xDEAD10CC - 02-23-2014 Quote:Step 1: Get your own web host Or -- install apache on your local machine and all other requirements that you might need. XAMPP works good. The other thing to note is that gd extensions must be enabled with the PHP installation on the web server for this to work. In the code though, why not use a dedicated prng instead of using modulo on time()? That's expensive. Code: $imageNumber = mt_rand(0, count($fileList) - 1);
// $imageNumber = time() % count($fileList); |