having problems with random number generator in uni project - C#