Reply to Re: [PHP] Re: [PHP-WIN] Random

Your name:

Reply:


Posted by Trobi on 01/29/05 21:05

Leif Gregory wrote / napísal (a):

>Hello SargeTron,
>
>Wednesday, January 19, 2005, 10:10:20 AM, you wrote:
>S> rand() only returns an int (number), but I would like something
>S> like dd75$6*, you know, containing any character. I would like it
>S> only to do a certain string ONCE, so there are no duplicates (in a
>S> for loop). Hopefully I won't need to do a huge array. Any
>S> suggestions?
>
>Take a look at this random e-mail address generator (hasn't everyone
>written one of these? <grin>) that I wrote a bit back.
>
>You should be able to see how to do exactly what you want from it.
>
>http://www.devtek.org/software/randmail/index.php
>
>$upperLowerNumber = rand(1,10); controls the so called seed for the
>script because I placed constraints on how often uppercase and numbers
>could appear.
>
>
>Cheers,
>Leif Gregory
>
>
>
whatabout uniqid()?
trobi

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация