badneko Posted November 14, 2015 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 37 Reputation: 1 Joined: 06/09/14 Last Seen: February 10, 2019 Share Posted November 14, 2015 Like Q23PVMSAW Get a random number is pretty easy ... but mixed with letters? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 14, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 14, 2015 .@possible_char$ = "1234567890" + "qwertyuiop" + "asdfghjkl" + "zxcvbnm"; .@size = getstrlen( .@possible_char$ ); for ( .@i = 0; .@i < 10; .@i++ ) .@string$ = .@string$ + charat( .@possible_char$, rand( .@size ) ); mes "Random String = "+.@string$ ; 1 Quote Link to comment Share on other sites More sharing options...
0 badneko Posted November 15, 2015 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 37 Reputation: 1 Joined: 06/09/14 Last Seen: February 10, 2019 Author Share Posted November 15, 2015 .@possible_char$ = "1234567890" + "qwertyuiop" + "asdfghjkl" + "zxcvbnm"; .@size = getstrlen( .@possible_char$ ); for ( .@i = 0; .@i < 10; .@i++ ) .@string$ = .@string$ + charat( .@possible_char$, rand( .@size ) ); mes "Random String = "+.@string$ ; Thanks so much sir ! Quote Link to comment Share on other sites More sharing options...
Question
badneko
Like
Q23PVMSAW
Get a random number is pretty easy ... but mixed with letters?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.