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
average and percentage
yari
reverse array
PrimeiroProjeto
binary search tree (insert, search, findmin, findmax, level-pre-in-post order traversals
ERFDAX
Hash plus i minus
Jp-trize
Get Country IP
XmlException in XmlSerializer.Deserialize when XML has \0