using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace random1
{
class Program
{
static void Main()
{
F();
F();
F();
F();
F();
F();
}
static Random r = new Random();
static void F()
{
for(int i = 0; i < 600; i++)
{
double value;
double n = 0.5 + r.NextDouble() * (6.0-0.5);
value = Math.Round(n);
Console.WriteLine(value);
}
Console.ReadLine();
}
}
}
Tidak ada komentar:
Posting Komentar