Jump to content

big array question


EdwardJ

Recommended Posts

hi,

im a complete noob, so please dont be annoyed if this is too obvious.

im trying to get a very big array (say 100 positions) with each one calling rand() function. So far Ive come up with this, but it doesnt work. i think it goes to an infinite loop

$rand_array=array();
for ($i=0; $i=100; $i++){
	$rand_array[$i]=rand();
	echo $rand_array[$i];
        }     

Link to comment
https://forums.phpfreaks.com/topic/130644-big-array-question/
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.