Randomly select a percentage of objects.

Enter in a percentage value to select and Randomill will calculate and randomly select that percentage of objects from within the current selection. The selection algorithm is optimized so that it will select or deselect based on how many operations have to be completed. There is also error handling for selecting too many or too few objects.

Randomly select a specific number of objects.

Select the Count submode and enter in how many objects you need to be selected. Randomill will randomly choose that many objects to select from within your current selection.

A note on using random selection with large groups of objects.

Please note: Using the random selection function on very large selections may take a long time to finish and could even crash Illustrator depending on how large the selection is. The reason for this is that the script selects objects by flipping the object.selected = true flag, which automatically causes Illustrator to re-draw the document, negatively impacting performance.

Applications and usage tips.

Random selection is a ubiquitous feature that can be used in an almost unlimited number of ways. It’s especially useful for making repetitive patterns or background textures a bit more varied while still retaining their cohesive look.

This random select script is especially useful for creating sub-selections of objects for further randomization. For example, if you wanted to randomize a grid of squares to have a 2/3 red fill color, and 1/3 green fill color, you could fill the whole grid with green, and then randomly select 66% of the squares using this tool and fill them with red.


Related Functions