sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23950
Re: [Question #243362]: Generate randon string
Question #243362 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243362
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
This is a pure Python question rather than Sikuli.
You can do something like that:
import random
import string
''.join(random.choice(string.ascii_uppercase + string.digits) for x in
range(N))
where N is the desired length of the string you want to generate.
Cheers,
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.