Added solution for problem 23 'rnd_select'