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 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 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
Archived
This topic is now archived and is closed to further replies.