Random programming snippets