Added constraints for randomSelector