Skip to content

Instantly share code, notes, and snippets.

@jrob5756
Created Sep 8, 2018
Embed
What would you like to do?
using System;
namespace JrTech.AspNetCore.Web
{
public interface IRandomNumberGenerator
{
int Get();
}
public class RandomNumberGenerator : IRandomNumberGenerator
{
public int Get()
{
var rand = new Random();
return rand.Next();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment