Jump to content
php.lv forumi

random 5 simboli


NBS

Recommended Posts

Es jau visu googli esmu izmeklējis.

Un šo piemēru arī skatījies, tas nestrādā.

Jo nav tāda Combinations C#'ā.

 

Varbūt ar php to var panākt.

Ka katrus 100 000 ierakstus savo failā un turpina ģenerēt.

Edited by NBS
Link to comment
Share on other sites

$rinda = 'qwertyuiopasdfghjklzxcvbnm1234567890';
for($simbols1=0;$simbols1<36;$simbols1++){
for($simbols2=0;$simbols2<36;$simbols2++){
for($simbols3=0;$simbols3<36;$simbols3++){
for($simbols4=0;$simbols4<36;$simbols4++){
for($simbols5=0;$simbols5<36;$simbols5++){
echo $rinda[$simbols1].$rinda[$simbols2].$rinda[$simbols3].$rinda[$simbols4].$rinda[$simbols5];
}
}
}
}
}

Bet nu, gatavojies datoru atstāt ieslēgtu tā pailgāk :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...