random cpp code