using System; using System.Collections; using System.Collections.Generic; using
System.Linq; namespace Core.Util { /// <summary> /// Random Random number helper class /// </summary>
public static class RandomHelper { private static Random _random { get; } = new
Random(); /// <summary> /// Next random number /// </summary> /// <param
name="minValue"> minimum value </param> /// <param name="maxValue"> Maximum </param> ///
<returns></returns> public static int Next(int minValue, int maxValue) { return
_random.Next(minValue, maxValue); } /// <summary> /// Next random value /// </summary> ///
<typeparam name="T"> Value type </typeparam> /// <param name="source"> A collection of values </param> ///
<returns></returns> public static T Next<T>(IEnumerable<T> source) { return
source.ToList()[Next(0, source.Count())]; } } }

©2020 ioDraw All rights reserved
vue + element Secondary packaging is more flexible Select assembly react Background management configuration route and sidebar :python code , Easy to complete Snake games Advanced front end -Vue Component world html+css Realize loading animation Attack and defense world forgot—— A dazzling question ( Detailed dish chicken ) Voting mechanism of ensemble learning (Voting mechanism about ensemble learning) Three categories and six sorting algorithms -C From recruitment to resume to find a fresh university student in the company Madness theory java Study notes ---JAVA Basic grammar