Random scripts and codes