Rather than going to random.org or making up your own random data, you can now insert random data using an IntelliJ action!
This plugin is also available on the plugin repository.
How to use
To insert random data, press
Alt + R (or
⌥R) and choose the type of data you want to insert. Hold
Shift while selecting a data type to insert a whole array of values, or hold
⌥) while selecting to change the settings of that data type.
There are five types of data that can be inserted:
- Integers, such as
- Decimals, such as
- Strings, such as
- Words, such as
- UUIDs, such as
In addition to these data types, it's also possible to generate entire arrays of a data type. For example, an array of integers might look like
[978, 881, 118, 286, 288].
The way the data is generated can be adjusted to your demands. For example, you can select the smallest integer to generate, the quotation marks to surround strings with, the number of elements to put in an array, or the decimal separator to use for decimals.
Randomness is bundled with a small English dictionary from which it chooses random words. However, you may want to add words from another language or add a small selection of relevant words. Therefore, you can register your own dictionary files with the word generator and select which dictionaries it should pick words from. You can make your own dictionary file by creating a text file and putting one word on each line, and saving the file with the