D
Deleted member 613
Guest
C#:
using System;
class MainClass {
public static void Main (string[] args) {
]Random Rng = new Random();
int answer2 = Rng.Next(0, 4);
}
The numbers in the brackets after Rng.Next are the parameters in which the Random numbers are generated.
Also, int is a type of variable.
An 'int' is a whole numbers.
Last edited by a moderator: