random code used in various projects