An API for random things