mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
13 lines
320 B
C#
13 lines
320 B
C#
using Content.Shared.Prototypes;
|
|
using Robust.Shared.Random;
|
|
|
|
namespace Content.Shared.Utility
|
|
{
|
|
public static class SharedRandomExtensions
|
|
{
|
|
public static string Pick(this IRobustRandom random, DatasetPrototype prototype)
|
|
{
|
|
return random.Pick(prototype.Values);
|
|
}
|
|
}
|
|
}
|