static void Main(string[] args) { IRndGenerator <int> rndActor = ActorWrapper.WrapActor(RndGeneratorFactory.NewSimpleRndGenerator()); Task <int> nextTask = rndActor.GetNextNumber(); // int number = await nextTask; }
public RndCardSelector(IRndGenerator rndGenerator) { RndGenerator = rndGenerator; }
public void Init() { this.GenRnd = new RndGenerator(); }
public CardPackShuffler(IRndGenerator rndGenerator) { RndGenerator = rndGenerator ?? throw new ArgumentNullException(); }