Skip to content

Instantly share code, notes, and snippets.

@lacolaco
Last active August 29, 2015 13:57
Show Gist options
  • Save lacolaco/9347903 to your computer and use it in GitHub Desktop.
Save lacolaco/9347903 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BBOP
{
public class BBOP
{
private static string[] _BBOPArray = new string[] { "ビ", "ビ", "ド", "レ", "ド", "オ", "ペ", "レ", "ショ" };
public string GetBBOP()
{
var rand = new Random();
var shuffle = Enumerable.Range(0, 9).Select(x => _BBOPArray.ElementAt(rand.Next(9)));
return string.Format("{0}{1}ッ{2}{3}ッ{4}・{5}{6}{7}ー{8}ン", shuffle.ToArray());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment