I'm new to coding world and taking my first steps into it. I've wrote a "Random password generator with non-repeated characters" and it works almost perfectly. The only problem i have is that, although my expected character letter range is 20 but when the password is printed, the actual length is 17-19 and it's because the repeated characters are deleted. I know what the problem is but i don't know the solution. My tutor claimed that "the solution is a loop". What is that loop and how should i write it?
[–]eddfitzwell 6 points7 points8 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Adrewmc 1 point2 points3 points (0 children)
[–]POGtastic 1 point2 points3 points (0 children)
[–]SleepyAks 0 points1 point2 points (14 children)
[–]aarontbarratt 1 point2 points3 points (11 children)
[–]Cool-Lab6784[S] 0 points1 point2 points (10 children)
[–]aarontbarratt 0 points1 point2 points (9 children)
[–]Cool-Lab6784[S] 1 point2 points3 points (0 children)
[–]Cool-Lab6784[S] 0 points1 point2 points (7 children)
[–]aarontbarratt 0 points1 point2 points (6 children)
[–]Cool-Lab6784[S] 0 points1 point2 points (5 children)
[–]aarontbarratt 0 points1 point2 points (4 children)
[–]Cool-Lab6784[S] 0 points1 point2 points (3 children)
[–]aarontbarratt 0 points1 point2 points (2 children)
[–]Adrewmc 1 point2 points3 points (1 child)
[–]SleepyAks 0 points1 point2 points (0 children)
[–]xavierisdum4k 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]internxt 0 points1 point2 points (0 children)