randomization and display limit implemented