How to build a string with more than 5 characters and a maximum of 15 characters using a random function in python
import string letters = list(string.lowercase)
After import and destination, you already have it, assuming that you want all possible lengths with the same probability:
import random length = random.randrange(5, 16) randstr = ''.join(random.choice(letters) for _ in range(length))
Source: https://habr.com/ru/post/1760940/More articles:Do you need Xcode to program iPhone apps? - iphoneBitmap transfer using Winsock, GetDIBits and SetDiBits - c ++IPhone programming on Mac OS X is not on a Mac - iphoneDoes jQuery handle Ajax timeout? - javascriptRelative time series - rПроблема с круговой очередью - cConfiguring GCC with FreeRTOS and OpenOCD - gccNeed help adding a shadow for an image in uiview in iOS4? - iphoneRotating views in a LinearLayout task - javaIs MySQL Workbench required for the server to work? - mysqlAll Articles