RandomItems Code for BNR iOS Programming Guide Chapter 2