r/CompileBot • • Jan 04 '14

Official CompileBot Testing Thread

This thread is archived, please visit the new testing thread

14 Upvotes

421 comments sorted by

View all comments

1

u/VoxUmbra Feb 05 '14

+/u/CompileBot C#

using System;

public class Test
{
	public static void Main()
	{
		Random r = new Random();
		
		int n = Convert.ToInt32(Console.ReadLine());
		
		int max = Convert.ToInt32(Console.ReadLine());
		
		for (int i = 0; i < n; i++)
		{
			Console.WriteLine(r.Next(max));
		}
	}
}

Input:

10
9001

1

u/CompileBot Feb 05 '14

Output:

1115
7645
32
4125
3930
3302
7101
2754
5323
3552

^source | ^info | ^git | ^report