ソースコードの表示
Console.WriteLine("Hello, World!");
var rand = new Random();
string s = "23456789abcdefghijmnopqrstuvwxyzABCDEFGHJLMNPQRSTUVWXYZ";
//string s = "123";
int l = s.Length;
const int PASSWORD_LENGTH = 8;
const int PASSWORD_NUM = 10;
for (int k = 0; k < PASSWORD_NUM; k++) {
string password = "";
for (int i = 0; i < PASSWORD_LENGTH; i++) {
int j = rand.Next(l);
password += s[j];
}
Console.WriteLine(password);
}
数式の表示
$$ x = \sqrt{3} $$