hi all , for my little challenge i have been asked to get two random numbers for x and y so i have wrote in
(i have created new randoms ar beginning called r and s)
but when im debugging the code my numbers are coming out exactly the same? now i only just learnt about random numbers so this is only coding i have been taught and dont understand how i can make the numbers actually random ? creat each random number within there own class?
int x = r.NextDouble(); int y = s.NextDouble();
(i have created new randoms ar beginning called r and s)
but when im debugging the code my numbers are coming out exactly the same? now i only just learnt about random numbers so this is only coding i have been taught and dont understand how i can make the numbers actually random ? creat each random number within there own class?