![]() |
What do you use for random integers?
Well we've all needed to produce random numbers/letters/symbols at one time or another for a salt/temp password or something of the like and I'm curious as to wether y'all use a set function or something else. This is what I use
PHP Code:
[php] Generally if I want random #'s only I'll just use mktime |
Just off the top of my head if I wanted a quick random number, I'd probably just use
PHP Code:
PHP Code:
|
i've been using this, its been working fine for helping to create my captcha strings.
Code:
public function EvRandString($length=10, $chrs = '1234567890qwertyuiopasdfghjklzxcvbnm'){ |
Lemme try to come up with something...
PHP Code:
|
I just made this one earlier today:
PHP Code:
|
I must really suck at this... You know what!?
PHP Code:
|
Not really JUST a random integer generator, but a common one :-)
PHP Code:
|
| All times are GMT. The time now is 01:59 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0