ways to do random variables in array but not repeat , how i can do that?

If you are saving the values in an array, look in the array before adding a new one to be sure that it is not already there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.