RandString is a simple function that returns a randomized string. This function can be used anywhere that strings can be used. There is almost no setting up required - all you have to do is import the library and start using the function.
Great taste, low calories.
Okay, so you might be asking yourself, "Self, why would Miles go through all the trouble of making this silly library?" Well, Self, there may be a situation where you just have to have a random string and nothing else will do. Personally, I intend to use it to display gibberish on a dialog item to simulate data encryption or something like that. It will be awesome, trust me.
Demonstration
The simplest way to use this would be to set some string variable. Let's call it String_X.
This example will set String_X to a random, 5-character string. It could include such wonderful strings as:
jH4S%
i $%4
00000 (it could happen)
{4Gs5
And so on. You can also set it to exclude or include letters, numbers, symbols, and/or spaces. Furthermore, you can set it to concatenate an initial substring or end substring. For example:
"HERES MAH STRING: g5*7& <--- WASNT THAT AWESOME?!"
I should note that Initial String and End String are not considered when setting Length.
Installation
All you have to do is download the library to a folder of your choice, then import it into the trigger editor and place wherever you like. Then you just call the RandString function wherever you can put a string.
Download
See the attachment on this thread.
README
Here's the official README as it's included in the library:
RandString by Miles
Description
RandString is a simple function that returns a randomized string. This function can be used anywhere that strings can be used. There is almost no setting up required - all you have to do is import the library and start using the function.
Okay, so you might be asking yourself, "Self, why would Miles go through all the trouble of making this silly library?" Well, Self, there may be a situation where you just have to have a random string and nothing else will do. Personally, I intend to use it to display gibberish on a dialog item to simulate data encryption or something like that. It will be awesome, trust me.
Demonstration
The simplest way to use this would be to set some string variable. Let's call it String_X.
This example will set String_X to a random, 5-character string. It could include such wonderful strings as:
And so on. You can also set it to exclude or include letters, numbers, symbols, and/or spaces. Furthermore, you can set it to concatenate an initial substring or end substring. For example:
I should note that Initial String and End String are not considered when setting Length.
Installation
All you have to do is download the library to a folder of your choice, then import it into the trigger editor and place wherever you like. Then you just call the RandString function wherever you can put a string.
Download
See the attachment on this thread.
README
Here's the official README as it's included in the library: