On Monday 10 November 2003 07:32 pm, Jason Williard wrote:
> I would like to have a script that randomly
> generates alpha-numeric characters. Does anyone
> know of any scripts that can do this or perhaps the
> basic code to generate random characters?
>
> Thank You,
> Jason Williard
How about th
Well, here's an untested script off the top of my head:
function random_string($Ncharacters) {
static $CharList = '0123456789abcdefghijklmnopqrstuvwxyz';
$String = '';
$Max = strlen($CharList)-1;
for ($i=0; $<$Ncharacters; $i++) {
$String .= $CharList{rand(0, $Max)};
}
retu
I would like to have a script that randomly generates alpha-numeric
characters. Does anyone know of any scripts that can do this or perhaps
the basic code to generate random characters?
Thank You,
Jason Williard
3 matches
Mail list logo