Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Sequential n Take ex
Readonly
Palindrome Number
Des encryption
dfrgthyjujyhtgrf
test code
Collection Basic
Customised Code Dashboard
look at this, soaches
aaaaa
Please log in to post a comment.