How to make Random Password Generator [Answered]
i just wirte this and cant continue pls help
16 Replies
Think about the logic required to generate a random password text
how ?
i will try again
Random has a method called Next that you can generate a number between 2 numbers
use that number to pick one of the characters from the string through the string's indexer
should i use string method here?
what string method?
rnd.Next(0, charecters.Length)
will give you an int for the index of a position in charecters stringLength not Lemgth
yeah, typo
thank you
i understood how i can write this
if you don't have an issue anymore write
/close
to close this thread@cupck
Split that string into char array.
from there, you can decide how long each password is, and then setting each character to be of array[randomNumbe]
string is already(acts) like a char array
it has .Length property, and an indexer
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I think
RandomNumberGenerator
is the cryptographically better option (instead of Random
), if you wanna take your generator to the next levelthank you all, finally i was able to write the code
✅ This post has been marked as answered!