Activity Stream
48,167 MEMBERS
6835 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    CodeSociety.net
    i thought about this, you could also change the odd by doing something like this

    rand(1,rand(1,2000)) im sure u get the logic
    immortalxx Reviewed by immortalxx on . [PHP] Random Number Problem Basically I want to generate a Random number but increase the chances of lower numbers appearing more. if I just use mt_rand(1, 1000) the chances of getting the number 1 is the same as 468 which is the same as 1000. I want to increase the chances of lower numbers appearing. This poor way shows what I mean if (mt_rand(1, 2) == 1) // 50-50 chance { Rating: 5



  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    It seems you haven't read the topic .

Page 4 of 4 FirstFirst ... 234

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with number of posts at homepage
    By bdr111446 in forum Wordpress
    Replies: 0
    Last Post: 21st May 2012, 03:10 PM
  2. Problem on DLE 9.3 Error Number: 1267
    By Devils in forum Technical Help Desk Support
    Replies: 6
    Last Post: 26th Sep 2011, 04:17 PM
  3. From random to more random
    By dannym23 in forum General Discussion
    Replies: 4
    Last Post: 13th Aug 2011, 07:35 PM
  4. DLE random log out problem
    By seraphim in forum Webmaster Discussion
    Replies: 0
    Last Post: 12th May 2011, 01:36 PM
  5. How to get those random ads?
    By DXS in forum Webmasters, Money Making
    Replies: 3
    Last Post: 8th Mar 2009, 08:13 AM

Tags for this Thread

BE SOCIAL