Answer the question
In order to leave comments, you need to log in
How to create strings by iterating over characters?
How to make a script that will create a string of characters from a random iteration of the characters a-z0-9 and punctuation, and the result should be from one character. After iterating through all the options, it should add one more symbol and repeat the generation of all possible options.
I understand that this is almost brute force ready, but I’m interested from the point of view of understanding programming as such ... A complete humanist and it’s hard to understand everything ...
I understand that regular characters are set and I know how to compose, but how exactly to do what would substitute 1 - checked ( Should it store the options somewhere else or some kind of condition for for? ) - at the end of the options +1 sign (in principle, the variable and at the end of the loop increase it, but how to create a string with the number of characters = this variable?)
I found it, only returning the number of characters in the string and trimming the string to a certain number of characters, but I want to understand how to create strings
If I can explain - "for those who are in the tank" (:
ZY
Because I'm fond of Linux and I'm learning php more interested in php and bash but also other languages \u200b\u200bare interesting to know if anyone knows
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question