I'm looking for SIMPLE way to write a program that will print out all 10 000 combinations of numbers 1,2,3,4,5,6,7,8,9,0.
Any ideas?
What about leading zeros?
You didn't understand my question,I'm looking for something like this:
0000...
0001...
0002...
0003...
2394...
2395...
9998...
9999...
If you understand me
Yes we understand you.
Is the random order important?
What have you tried in the last two hours?
Did it work ok?
sprintf?
Nested for loops?
Nikola19992:
You didn't understand my question,I'm looking for something like this:
0000...
0001...
0002...
0003...
2394...
2395...
9998...
9999...
If you understand me
That's what reply #1 does except you have also have to format the output to give you leading zeros.
Just google "permutations" and use a little brain power to figure out how to code it (hint: it's really not that hard)
I was actually studying for school till now.I'll look into sprintf,I don't know what that is.Also,any idea with arduino pressing my smartphone touchscreen? (reason why I'm doing this is because I forgot my smartphone password and I can't enter it with google account,and my password is 4 digit number)
Get some anti-static foam and ground it - it makes a great fake finger.
Not sure how sprintf helps with this.
Nikola19992:
I was actually studying for school till now.I'll look into sprintf,I don't know what that is.Also,any idea with arduino pressing my smartphone touchscreen? (reason why I'm doing this is because I forgot my smartphone password and I can't enter it with google account,and my password is 4 digit number)
What the heck are you talking about?
Anyway, look at this for how to use sprintf(). (short for Serial Print File, I think).
Delta_G:
They'll usually lock you out after so many wrong attempts.
Ohhhh, I get what he's trying to do. Yeah, no - using an Arduino like this won't work because of what Delta_G mentioned.
short for Serial Print File, I think)
string print format
Hi,
Where do you want to display the 4digits?
On PC?
On LCD?
On 4 digit 7Seg Dislplay?
If not on PC what type/model display?
Tom...
I'll use that numbers as a password and if it's for example 1234 it will check what numbers does a password contain and by that it will be pressing numbers on my smartphone
"finger" will look something like this : Arduino Plays Piano Tiles (Tutorial) - YouTube . Ignore LDR's.
Also,this piano tiles robot will be my next project
Hi,
Wouldn't it be easier to go to your phone supplier, with all your purchasing paperwork and your ID, and get them to open it for you?
Tom...
It would,but this is more interesting,fun and time-taking
You aren't really printing the whole number so your original question was probably a bit off. Your "finger" needs to be given each digit one at a time and convert that to its co-ordinate system to press the numbers in sequence. That's the easy part (Google)
Nikola19992:
It would,but this is more interesting,fun and time-taking
Of whose time?
But for other devices this train of thought has worked very well!
Arduino brute force GPS password
this is exactly what I was looking for,but without servos,just by sticking "fingers" on a screen where numbers are and if output is HIGH button is pressed