Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Random number IF var change
//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) { Random rnd = new Random(); int Rannum = rnd.Next(1,5); int x = 35; int r = 45; int w = 25; if (Rannum == 2) { x = 30; r = 40; w = 20; } if (Rannum == 3) { x = 3; r = 4; w = 2; } Console.WriteLine("x = {0} r = {1} w = {2} Random number = {3}", x, r, w, Rannum, " Dunno"); } } }
run
|
edit
|
history
|
help
1
math 10.97
I have a small friend
Matrix Pattern
Constructor inheriterance
Simple Parallel.For example
عبدالله
123
test
Gen inheritance test
XmlException in XmlSerializer.Deserialize when XML has \0