rppearso
- 196
- 3
Does anyone know where I can go to figure out how to generate a random 3-4 letter sequence BUT with every click that sequence is stored in an array and can not come up again?
This discussion focuses on generating unique random letter sequences of 3-4 characters using programming languages such as Java, C, MATLAB, and Visual Basic. The proposed solution involves utilizing a predefined random function to create sequences, storing them in a vector or array, and ensuring that each newly generated sequence is unique by checking against previously generated ones. The conversation highlights the importance of user interaction, suggesting that sequences can be generated upon button clicks rather than automatically.
PREREQUISITESProgrammers and developers interested in creating applications that require unique random sequence generation, particularly those using Visual Basic or MATLAB.
Erland said:Do you have access to a programming language (Java, C, Pascal, etc...) with a prefined random function? Then, it should be no problem to translate a random number between 0 and 1 to a 3 or 4-letter sequence. Then, save all your sequences in a vector, and for every newly generated sequence, check if it is already in the vector, and generate a new one if it is so.