Random coding snippets and examples