random number generator
Select text layers and replace them with randomly generated numbers, lightning fast.
Plugin Preview
About this plugin
Select text layers and replace them with randomly generated numbers, lightning fast. Replace existing numbers within a text layer, reuse a custom range, disable duplicates, and format long numbers with commas.
🎥 Watch demo video
Check out this quick video to see what this plugin can do!
⚡️ Generating numbers with quick action commands
The quickest way to use this plugin is to use Figma's quick actions menu. To open this menu on Mac, use Cmd + / or Cmd + P. On Windows, use Ctrl + / or Ctrl + P. With this menu open, you can type a command and hit enter to quickly generate random numbers.
[-] Type a valid prefix before the command
‣ g | For example: g100 / gthousand / g saved
‣ rng | For example: rng 10000 / rng million / rng saved
‣ random | For example: random10 / random hundred / randomsaved
‣ num | For example: num 1000000 / numhundredthousand / numsaved
‣ [-]10, [-]100, ... , [-]1000000
This will generate random numbers for all selected text layers between 1 and whatever amount of zeros you typed. For example, pressing Cmd + /, typing g100000, and hitting Enter will generate numbers between 1 - 100,000.
‣ [-] ten, [-] hundred, ... , [-] million
This has the same functionality as the above, but you can type the name of the number instead. For example, pressing Cmd + /, typing random ten, and hitting Enter will generate numbers between 1 - 10.
‣ [-] saved
This will generate numbers from your saved range. By default, this will be 1 through 50, but you can change it in the plugin UI. For example, pressing Cmd + /, typing rng saved, and hitting Enter will generate numbers between Custom X - Custom Y.
⚙️ Using the plugin UI
Open up the plugin UI by navigating to it in your Plugins dropdown, or open up the quick actions menu (Cmd + /) and type rng settings. In the plugin settings window, you can do the following:
‣ Modify your saved range
Set up your minimum and maximum to generate your random numbers from. You can go really high (into the billions), so go wild. The plugin will remember this range, and you can also quickly generate new numbers from your saved range without the plugin open. See [-] saved above.
‣ Rapidly generate numbers
Keep clicking "Randomize" or hitting the Enter key and you'll regenerate numbers for all your selected text layers. Keep going until you see a set of numbers that is perfect.
‣ Toggle the "Only replace existing numbers" setting (Off by default)
Decide whether to replace the entire contents of a selected text layer with a generated number, or scan through the layer and replace any numbers found with newly generated number. Text layers without numbers in them will not be affected.
‣ Toggle the "Prevent Duplicate" setting (Off by default)
Decide whether to prevent duplicate numbers when generating numbers. This is a good way to generate unique sets of numbers or randomize list order. If the amount of numbers you are generating exceeds the amount you define in your range, the plugin will need to generate some duplicates.
‣ Toggle the "Format with commas" setting (On by default)
Decide whether to show commas for numbers above 999. For example, you'd want to toggle this on if you're generating regular numbers, but you might want to toggle it off if you're generating numbers for a data centric UI or a random list of years (2021 vs 2,021).
☕️ Support the plugin
If you love the plugin and feel inclined to provide some small financial support to encourage the development of new features and bug fixes, that would be greatly appreciated. No pressure, of course!
_
Plugin Details
Version | 5 |
---|---|
Created | August 18, 2021 |
Last Updated | March 5, 2024 |
Category | editing & effects plugins |
Creator | Dan Araujo |
Stats | 1922 installs, 53 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- https://fonts.googleapis.com
- https://unpkg.com
More Like This
Discover other plugins in the editing & effects plugins category.