On each x,y run a random number between 0 and 24 if the number is lower that the line number paint a white rect.