Jump to content

randoming btw 101 random integers


Tuck

Recommended Posts

            for ($i=0;$i<100;$i++) {
               $random = rand(0, 10);
               $slot[] = $random;
            }
            $RAN_1 = rand(0, 100);
            $RAN_2 = rand(0, 100);
            $RNUM_1 = $slot[RAN_2];
            $RNUM_2 = $slot[RAN_1];

 

returns 0 and 0

Link to comment
https://forums.phpfreaks.com/topic/177348-randoming-btw-101-random-integers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.