Hi @Ekayne20,
Well done on making your own game, and so early on in the course! Nim was a game I was introduced to in primary school, I remember it well, fond memories.
I sorted your code formatting for you, the following is for future reference for you 
See also;
- Unity Documentation : Random.Range()