Jump to content

How to check multiple values not same


Mudsaf

Recommended Posts

example i got this script $a = rand(1, 4);$b = rand(1, 4);$c = rand(1, 4);.. more values $a2 = rand(1, 20);$b2 = rand(1, 20);$c2 = rand(1, 20);...more values how do i make script that checks that for every value

if ($a <> $b && $a2 <> $b2 {  }

whitout having to do million values listed. So i dont want any $a && a2 values to be same as any other for example $b && b2. I guess its pretty hard to explain but lets assume i have deck of cards and i dont want same card with same color twice there.

Edited by Mudsaf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...