random color function working at basic level