예제 #1
0
        /// <summary>
        /// Prints a random message from a hardcoded array of messages.
        /// </summary>
        private static void PrintRandomMessage()
        {
            string[] messages =
            {
                "Think your Mod Loader has EDGE? Think again.",
                "A Mod Loader by Sewer56?",
                "Cuteness is Justice. It is the law!",
                @"It all started here: https://discord.gg/4DHujrb",
                "null",
                "All your base are belong to us.",
                "The answer is \"Sometime between now and never.\"",
                @"Don't forget to backup Salvato's character file.",
                "\"For A Really Disturbing Image... Flip Disc Over\"",
                "Hello! Trojan:Win32/ReloadedModLoader",

                "The program 'fortune' is currently not installed.\n" +
                "You can install it by typing: sudo apt install fortune-mod"
            };

            // Random number generator.
            Random randonNumberGenerator = new Random();
            int    arrayIndex            = randonNumberGenerator.Next(0, messages.Length);

            // Print the message.
            ConsoleFunctions.PrintMessageCenter(messages[arrayIndex], ConsoleFunctions.PrintMessage);

            // Print Space
            Console.WriteLine();
        }