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