How to Generate Random Strings with Dash in-between in Python
If you need to generate a random string that looks something like this: VUNBXJ-230411
, then you can use the following random generator:
You simply call the above as follows:
If you need to adjust the length of string A and B, then you can change the value in the range
above from something other than 6
.