SCSS provides a random function for generating a value in given range. Following code compiles to generate different background for first 5 children.