public static void InitRandomPoems() { foreach (Rule R in RuleHelper.GetAllRules(true)) { SamplePoems.Append(R.Examples); } }
public static string GetRandomPoem() { int current = (int)(Math.Floor(Math.Random() * SamplePoems.Poems.Length)); string s = SamplePoems.GetItem(current); return(s); }
private static void LoadSamples() { if (Script.IsNullOrUndefined(Window2.Rules)) { return; } string[] Rules2 = (string[])(Window2.Samples); SamplePoems.Append(Rules2); }
private void Go(SamplePoems V, string title, string author, string file) { Go(V.Poems, title, author, file); }