Given a range of numbers, say 0 to 9, how does one generate a random pattern using all the digits but without repeating the occurence of a digit?
The following code gives the desired result:
Given the same range of numbers, how does one generate a 4-digit random pattern using all the digits but without repeating the occurence of a digit?
The following code gives the desired result:
The above codes may be modified to suit your own application.
-oOo-
Back to Tips and Tutorials