Here's a little script I whipped up with tons of options including:
Random or specific shape sides
Random or specific shape radius
Random or specific CMYK color options (for each channel)
Random or specific shape rotation
Random scattering option with area density
Almost everything you would want in a shape generator... pretty fun to play with, and to draw cryptic mosaics with...