Text this: Cycles in edge-coloured graphs and subgraphs of random graphs