You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dice_App/Sources/MaSoluction/Model/NumberDie.cs

52 lines
999 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class NumberDie : Die
{
private int min;
private int max;
private static Random random=new Random();
public NumberDie(string name,int min,int max) : base(name)
{
Name = name;
Min = min;
Max = max;
}
public int Min
{
get
{
return min;
}
set
{
min = value;
}
}
public int Max
{
get
{
return max;
}
set
{
max = value;
}
}
public override void RandomFace()
{
int resultat = random.Next(min, max + 1);
}
}
}