69
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
5
namespace randomString
6
{
7
public class Program
8
{
9
static Random r = new Random();
10
public static void Main(string[] args)
11
{
12
List<string> strs = new List<string>();
13
14
do
15
{
16
strs.Add(GererateString(10));
17
} while (strs.Count < 10);
18
19
Console.WriteLine("隨機字串內容如下:");
20
foreach (var _str in strs)
21
{
22
Console.WriteLine(_str);
23
}
24
Cached Result