- #1
TheDemx27
Gold Member
- 169
- 13
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
public class RandomNextDemo
{
static void NoBoundsRandoms(int seed)
{
Console.WriteLine(
"\nRandom object, seed = {0}, no bounds:", seed);
Random randObj = new Random (seed);
}
}
static void Main(string[] args)
{
RandomNextDemo.NoBoundsRandoms();
}
}
}
Error1'ConsoleApplication1.Program.RandomNextDemo.NoBoundsRandoms(int)' is inaccessible due to its protection
In C#, of course.