Random Codes and Snippets