GetRandom.cs
using System;
namespace Loto7
{
public static class GetRandom
{
//ランダムで整数を返す
//(仮引数)int first:最小整数値 int max:上限の値より+1の整数
//(戻り値)first以上maxを超えないランダム整数
//V_2019.06.24
public static int Getrandom(int first,int max)
{
Random random = new Random();
int ran = random.Next(first, max);
return ran;
}
}
}