Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace random
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random random = new Random();
- for (int i = 0; i < 25; i++)
- {
- int roll = random.Next(0, 31);
- string item = "";
- if (roll >= 0 && roll <= 5)
- item = "Sword";
- else if (roll >= 6 && roll <= 10)
- item = "Axe";
- else if (roll >= 11 && roll <= 18)
- item = "Dagger";
- else if (roll >= 19 && roll <= 26)
- item = "Arch Staff";
- else if (roll >= 27 && roll <= 31)
- item = "Flame Cannon";
- Console.WriteLine(item);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement