0
How to generate a random string (specified value) from a a specified string? e.g let 'hello' be random
3 Answers
+ 1
Make string to list, shuffle list. Print list as string equivalent.
0
Var = "cdgstys"
Rvar = random.shuffle(Var)
?
0
Var = list("cdgstys")
random.shuffle(Var)
print("". join(Var)) #or
Var= ''.join(Var)
print(Var)