The emergence of structures in random processes and random graphs