@CycleWeeb/

anydie

C#

No description

fork
loading
Files
  • main.cs
  • main.exe
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;

class MainClass {
  public static void Main (string[] args) {
    Console.WriteLine("Please input the number of sides your die has. 1 - " + (int.MaxValue - 1));
    int die;
    Random r = new Random();
    while(true){
      die = int.Parse(Console.ReadLine());
      Console.WriteLine((r.Next(1, (die + 1))));
    }
  }
}