Jump to content

Array random but use all the number within the array


learningprobs

Recommended Posts

Hello,

 

I would like to output one by one all the values inside an array randomly but never output again the ones that have already been output until all the numbers in that array have been output.

 

At the moment my array output numbers like this:

Array ( [0] => Array ( [number1] => 1 [number2] => 4 ) 
            [1] => Array ( [number1] => 1 [number2] => 3 )
            [2] => Array ( [number1] => 1 [number2] => 2 ) )

 So I would like the keys 0,1,2  to output randomly 1 time each and never have them to output again until all 3 keys have been output.

 

 

In short, I will use the number1 and number2 separately and add "+" in between.

I just want the system to show his additions as explained above so he learns them faster but not in order.

 

 

Thanks in advance for your help.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.