Re: Note added to rand

From: Date: Sun, 09 Sep 2001 12:11:11 +0000
Subject: Re: Note added to rand
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65564@lists.php.net to get a copy of this message
People interested in rand can still visit http://www.A-Eskwadraat.nl/~jeroen/rand , but if you have something interesting to say you can of course also mail to php-dev! World Wide Web Cie <www@A-Eskwadraat.nl> wrote: > Note added by jmoore: > My vote: ±1 :) > Suggestions/remarks: > > I think that PHP should provide a nicer more intuative random number system, who wants to have to give a shit about seeding a random number generator etc, I think we should still leave mt_* and *rand() in place as for C programmers they brhave the way we expect which makes our lives easier as we dont have to think but for non C programmers a no brain random() function would be nice. I think that somthing should be done but I am unsure if your proposal is the best way to do it.. Ill try to think of somthing and add to this and then perhaps we can get a better discussion about this whole thing. </quote> I like the suggestion to keep rand and srand in place for people used to it. If you want to do it the hard way, why not give them the possibility? I'm not sure wether this is valid for mt_rand etc too, but why not... they will stay for a while anyway because of BC. Keep me posted if you think of something else! --Jeroen

« previous php.dev (#65564) next »