Random color gen logic, excluding wps module for geoserver temporarily