Skip to content

Commit

Permalink
Added IRandomizable to make Random instances more accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
kesac committed Jun 5, 2024
1 parent 2364e30 commit cfc160d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Syllabore/Syllabore/IRandomizable.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;

namespace Syllabore
{
/// <summary>
/// Represents an entity that simulates
/// randomness using system class <see cref="System.Random"/>.
/// <para>
/// The purpose of this interface is to make the entity's
/// instance of <see cref="System.Random"/>
/// available for retrieval and modification. This is important
/// for controlling seeds during testing.
/// </para>
/// </summary>
public interface IRandomizable
{
/// <summary>
/// The instance of <see cref="System.Random"/> used to
/// simulate randomness.
/// </summary>
Random Random { get; set; }
}
}

0 comments on commit cfc160d

Please sign in to comment.