Table of Contents

Class TimbnRolls

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

The dice for a person's daily choices. They give the same numbers for the same key and the same game minute or day, so a reload or a second look at the same moment rolls alike, and they are well mixed, so neighboring minutes, days and people don't roll alike.

public static class TimbnRolls
Inheritance
TimbnRolls
Inherited Members

Examples

var random = TimbnRolls.ThisMinute(TimbnGameIds.Npcs.Herm);
if (random.NextDouble() < 0.75)
    GoForAWalk();

Methods

ThisDay(string)

Dice for a key that give the same numbers all through this game day, such as for picking one thing a day.

public static Random ThisDay(string key)

Parameters

key string

What is rolling, such as Herm.

Returns

Random

A new random source seeded from the key and the day.

ThisMinute(string)

Dice for a key, such as a person's id, that give the same numbers all through this game minute.

public static Random ThisMinute(string key)

Parameters

key string

What is rolling, such as Herm.

Returns

Random

A new random source seeded from the key and the minute.