0

How to generate a random string (specified value) from a a specified string? e.g let 'hello' be random

Python

21st Oct 2020, 8:52 PM
Keegan Sichone
Keegan Sichone - avatar
3 ответов
+ 1
Make string to list, shuffle list. Print list as string equivalent.
21st Oct 2020, 9:00 PM
Jayakrishna 🇮🇳
0
Var = "cdgstys" Rvar = random.shuffle(Var) ?
21st Oct 2020, 9:03 PM
Keegan Sichone
Keegan Sichone - avatar
0
Var = list("cdgstys") random.shuffle(Var) print("". join(Var)) #or Var= ''.join(Var) print(Var)
21st Oct 2020, 10:01 PM
Jayakrishna 🇮🇳