We use a number of custom functions in Grasshopper to teach concepts. You can read more about these functions, as well as how to create them outside Grasshopper, here.
pickRandom() is a custom function that we wrote to use within Grasshopper. See the link I posted. If you want to use it outside the app, you’ll have to create it.
Hope this helps!