mirror of
https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities.git
synced 2026-09-07 08:55:58 +02:00
Added random class
Added random class, new string extension methods and updated the XAML documentation.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user