optimise files
This commit is contained in:
30
CS/15.2/Program.cs
Normal file
30
CS/15.2/Program.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
namespace _15._2
|
||||
{
|
||||
public class RandomObjectDemo
|
||||
{
|
||||
static void RunIntRan(Random randObj)
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Console.Write("{0,10}", randObj.Next());
|
||||
}
|
||||
for (int i = 0;i < 6; i++)
|
||||
{
|
||||
Console.Write('{1,10}',randObj.NextDouble());
|
||||
}
|
||||
}
|
||||
static void Fixseed(Random randObj)
|
||||
{
|
||||
Random fixseed = new Random();
|
||||
fixseed.Next();
|
||||
}
|
||||
static void autoseed()
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
Console.WriteLine("时间");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user