johnrb87 Posted January 15, 2011 Share Posted January 15, 2011 Hi I have this simple code $one = rand(1,9); $two = rand(1,9); $three = rand(1,9); but I need to change it so that they are all unique and the same number is not used more than once can anyone help? thanks Quote Link to comment https://forums.phpfreaks.com/topic/224481-3-random-numbers-no-duplication/ Share on other sites More sharing options...
johnrb87 Posted January 15, 2011 Author Share Posted January 15, 2011 solved it, thanks anyway Quote Link to comment https://forums.phpfreaks.com/topic/224481-3-random-numbers-no-duplication/#findComment-1159608 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.