YoungNate_Black_coder Posted July 9, 2011 Share Posted July 9, 2011 okay, so im still working on this game and i was wonder is there anyother good rand functions out there?? like ay i have an array: array(dcvfvfvr,evrvgtfv,fvfvrfv,vfvfgvr,,fvergtvv) and i wanted to randomly select one of those values inside a foreach loop maybe untill it hits a certain number? Quote Link to comment https://forums.phpfreaks.com/topic/241528-another-array-question-selecting-random-values-from-the-array/ Share on other sites More sharing options...
gristoi Posted July 11, 2011 Share Posted July 11, 2011 have a look at using the array_rand function. Quote Link to comment https://forums.phpfreaks.com/topic/241528-another-array-question-selecting-random-values-from-the-array/#findComment-1241185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.