Last active
August 29, 2015 13:57
-
-
Save lacolaco/9347903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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