Discover Packages
github.com/sheoncehadme/dragon-mud
random
package
Version:
v0.0.0-...-a7a3610
Opens a new window with list of versions in this module.
Published: Mar 1, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
D10 represents a 10-sided die
D100 represents a 100-sided die
D12 represents a 12-sided die
D2 represents a 2-sided die
D20 represents a 20-sided die
D4 represents a 4-sided die
D6 represents a 6-sided die
D8 represents a 8-sided die
Range generates a number between the min and max values provided.
RollDie takes a string value of die, such as '3d20' and returns an int slice
with the results.
SetSource is used exclusively for testing, it should never be used outside
of an _test file. This will allow setting a known generator with a predicatble
source of random numbers for test prediction.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.