I have issues with the random part. There is no “private” inside the MainComponent.cpp. Also in the tutorial it is called MainContentComponent. Maybe the tutorial is not up to date.
Are you using the latest tutorial download from that link? The files contain a MainContentComponent class with a private section containing the Random instance.