FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Random function
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Random function [message #180544] Mon, 25 February 2013 20:48 Go to previous message
Sonnich Jensen is currently offline  Sonnich Jensen
Messages: 4
Registered: February 2012
Karma:
Junior Member
Hi

I use the rand function to get 10 items of 1808 current itemes. I tried some 50 times or so and I can clearly see that it has a few "faivourite numbers" which comes all the time, and some whihc I still have to see (I am talking about large groups of items from the 1808 picture, that I still have to see)

How I can get a better random function?

Currently it is:

$pic=rand(1, $count); // count=1808 as of now
WBR
Sonnich
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Request for proofreading
Next Topic: XML error when accessing a certain method of a wsdl service
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 22:02:27 GMT 2024

Total time taken to generate the page: 0.04591 seconds