I think the problem statement should read "the proportion of bouncy numbers is at least p%", rather than "exactly p%."
Currently, num2str is able to handle all test cases.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!