improved CSS, improved random selection