Skip to content

Instantly share code, notes, and snippets.

@JasonBock
Created May 10, 2022 18:59
Show Gist options
  • Save JasonBock/0bbcd7882f6681cfc088e4e1ea11e5ec to your computer and use it in GitHub Desktop.
Save JasonBock/0bbcd7882f6681cfc088e4e1ea11e5ec to your computer and use it in GitHub Desktop.
public sealed class Golfer
: IDriver
{
public void Drive()
{
var value = RandomNumberGenerator.GetInt32(250, 320);
Console.WriteLine($"{value} yards");
}
}
public sealed class Racer
: IDriver
{
public void Drive()
{
var value = RandomNumberGenerator.GetInt32(120, 220);
Console.WriteLine($"{value} MPH");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment