====== Dice ====== **Dice** are the main resources used to activate [[:equipment]]. Dice can be dragged into equipment in order to activate it as long as it meets the requirements shown in the equipment slot. Each dice has a value from 1 to 6, and are as follows: ^ 1 ^ 2 ^ 3 ^ 4 ^ 5 ^ 6 ^ | {{1.png?nolink&100|1}} | {{2.png?nolink&100|2}} | {{3.png?nolink&100|3}} | {{4.png?nolink&100|4}} | {{5.png?nolink&100|5}} | {{6.png?nolink&100|6}} | When each fighter's turn starts, they roll dice equal to their dice count, all with random values from 1 to 6. The [[characters:Warrior]], [[characters:Thief]], and [[characters:Inventor]] all start with 2 dice, while the [[characters:Witch]] and [[characters:Jester|the sixth character]] start with 3 dice. The [[characters:Robot]] does not roll dice at the start of the turn; instead, the Robot calculates dice manually and can roll dice until reaching or exceeding a CPU target. The two sides of a dice add up to 7, which is useful for cards like [[equipment:Spatula]]. ===== Are the dice truly random? ===== Yes, or as random as you can get while being fast and efficient with a computer. The random number generator uses an implementation of [[https://en.wikipedia.org/wiki/Xorshift|Xorshift]], a random number generator invented by the computer scientist [[https://en.wikipedia.org/wiki/George_Marsaglia|George Marsaglia.]] The Dicey Dungeons random number generator used for the dice is found [[https://github.com/haxegon/haxegon/blob/master/haxegon/Random.hx|here]]. [[https://web.archive.org/web/20210725073328/https://twitter.com/terrycavanagh/status/1183808073342898177|(Source)]]