Generate random function and make colorful image - from Nifty Assignments.