Skip to content

Instantly share code, notes, and snippets.

@adarapata
Last active December 17, 2015 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adarapata/5632149 to your computer and use it in GitHub Desktop.
Save adarapata/5632149 to your computer and use it in GitHub Desktop.
席替えスクリプト
using System;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string[] sankisei = { "ぐっさん", "おっくん", "きたけー", "たけお"};
List<string> shuffle = new List<string>();
Ramdom r = new Random();
forearch(var m in sankisei){ shuffle.insert(m, r.next(shuffle.count)); }
shuffle.foreach(m => Console.Write(m + ","));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment