Python Forum
Random Passcode Generator function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Passcode Generator function
#3
@horrorfodrasz, star import is considered bad practice and is generally discouraged

Both code snippets have caveats that - e.g. omit letters at certain indexes, while add numbers instead.
also I don't think you understand how this line works

saved_variable+= saved_variable.join(alphabet[rndm_lttr:rndm_lttr+1])

as an advise - look at random.choices()
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Random Passcode Generator function - by romeo777 - Jan-06-2021, 10:58 AM
RE: Random Passcode Generator function - by buran - Jan-06-2021, 01:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Real Random Number Generator woodturner550 21 2,602 Feb-01-2024, 03:19 PM
Last Post: DeaD_EyE
  random two-word domain name generator rootVIII 0 2,167 Aug-06-2019, 03:15 AM
Last Post: rootVIII

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020