This page is an list of useful functions for microcontroller and physical computing use.
Functions included here should be fairly short and well-commented, to be useful to beginning programmers.
Random Functions
RandomHat - pick one of n choices from a hat before repeating