Sadly, the code kit app is missing this very important function. I reported this to littlebits on June 8, 2017. They promised that they were working on an update. I last heard from them on December 6, 2017 (almost a year ago), and at that time they said they were still working on it. I mean how hard is it to put a "rand()" function into this thing. So I gave up.