Problem 46585. Beat the RNG - Passwords
The Test Suite randomly generates a list of 1024 passwords.
Given the source code and one generated password, return the complete list of all passwords.
% Password generator source code
rng('shuffle')
alphanum = ['a':'z' 'A':'Z' '0':'9'];
passwords = string(alphanum(randi([1 length(alphanum)], [1024 6])));
rng('shuffle')
Read the manual. >:)
help randi
help rng
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
1059 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2534 Solvers
-
First non-zero element in each column
939 Solvers
-
Make a run-length companion vector
656 Solvers
-
Join Strings with Multiple Different Delimiters
222 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!