Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Two lines of Random number
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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 rdm1 = new Random(); Random rdm2 = new Random(); Random rdm3 = new Random(); Random rdm4 = new Random(); Random rdm5 = new Random(); Random rdm6 = new Random(); Random rdm7 = new Random(); Random rdm8 = new Random(); Random rdm9 = new Random(); Random rdm10 = new Random(); Random rdm11 = new Random(); Random rdm12 = new Random(); Random rdm13 = new Random(); Random rdm14 = new Random(); Random rdm15 = new Random(); Random rdm16 = new Random(); int Value = rdm1.Next(10, 19); int value2 = rdm2.Next(10, 19); int value3 = rdm2.Next(20, 29); int value4 = rdm2.Next(30, 39); int value5 = rdm2.Next(40, 49); int value6 = rdm2.Next(50, 59); int value7 = rdm2.Next(60, 69); int value8 = rdm2.Next(70, 79); int value9 = rdm1.Next(10, 19); int value10 = rdm2.Next(10, 19); int value11 = rdm2.Next(20, 29); int value12 = rdm2.Next(30, 39); int value13 = rdm2.Next(40, 49); int value14 = rdm2.Next(50, 59); int value15 = rdm2.Next(60, 69); int value16 = rdm2.Next(70, 79); Console.Write(Value + " "); Console.Write(value9 + " "); Console.WriteLine(value8 + " "); Console.Write(value2 + " "); Console.Write(value10 + " "); Console.WriteLine(value16 +" "); Console.Write(value3 + " "); Console.Write(value11 + " "); Console.WriteLine(value7 + " "); Console.Write(value4 + " "); Console.Write(value12 + " "); Console.WriteLine(value15 + " "); Console.Write(value5 + " "); Console.Write(value13 + " "); Console.WriteLine(value14 + " "); } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0.22 sec, absolute running time: 0.17 sec, cpu time: 0.17 sec, average memory usage: 16 Mb, average nr of threads: 4
fork mode
|
history
|
discussion
11 15 70 11 16 74 25 21 68 31 34 65 46 44 51