mirror of
https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities.git
synced 2026-09-04 09:06:31 +02:00
Added random class, new string extension methods and updated the XAML documentation.
24 lines
490 B
C#
24 lines
490 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Stone_Red_Utilities.RandomExtentions;
|
|
|
|
namespace Stone_Red_C_Sharp_Utilities_Test
|
|
{
|
|
internal class Program
|
|
{
|
|
private enum MyEnum
|
|
{
|
|
a,
|
|
b,
|
|
c
|
|
}
|
|
|
|
private static void Main()
|
|
{
|
|
Random rnd = new Random();
|
|
MyEnum randomItem = rnd.NextEnum(new MyEnum());
|
|
Console.WriteLine(randomItem);
|
|
}
|
|
}
|
|
} |