Skip to content

Commit cfc160d

Browse files
committed
Added IRandomizable to make Random instances more accessible
1 parent 2364e30 commit cfc160d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Syllabore/Syllabore/IRandomizable.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
3+
namespace Syllabore
4+
{
5+
/// <summary>
6+
/// Represents an entity that simulates
7+
/// randomness using system class <see cref="System.Random"/>.
8+
/// <para>
9+
/// The purpose of this interface is to make the entity's
10+
/// instance of <see cref="System.Random"/>
11+
/// available for retrieval and modification. This is important
12+
/// for controlling seeds during testing.
13+
/// </para>
14+
/// </summary>
15+
public interface IRandomizable
16+
{
17+
/// <summary>
18+
/// The instance of <see cref="System.Random"/> used to
19+
/// simulate randomness.
20+
/// </summary>
21+
Random Random { get; set; }
22+
}
23+
}

0 commit comments

Comments
 (0)