Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Random number string changer
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string i = "dog"; string c = "cat"; Random rnd = new Random(); int Value = rnd.Next(1,3); if (Value == 1) { Console.Write("Animals: {0}, {1}.", i, c + " " + Value); } if ( Value == 2) { i = "panda"; c = "deer"; Console.Write("Animals: {0}, {1}.", i, c + " " + Value); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Merge two array
XPath
Huffman Algorithm
How to find second largest integer in an array using only one loop?
Problem3 Binary
Hex-String Encoder/Decoder + Obfuscator by Cuppujeano
1. Basics: primitive data types
CheckingAccount
const
Chris Kasongo Lazarius Mukengeshayi "Entelect BlackJack 21"
Please log in to post a comment.