perl-Games-Dice - Simulates rolling dice

Property Value
Distribution OpenMandriva Cooker
Repository OpenMandriva Unsupported Release x86_64
Package filename perl-Games-Dice-0.43.0-3-omv4000.noarch.rpm
Package name perl-Games-Dice
Package version 0.43.0
Package release 3-omv4000
Package architecture noarch
Package type rpm
Homepage -
License -
Maintainer -
Download size 16.95 KB
Installed size 12.58 KB
Games::Dice simulates die rolls. It uses a function-oriented (not
object-oriented) interface. No functions are exported by default. At
present, there are two functions which are exportable: 'roll' and
'roll_array'. The latter is used internally by 'roll', but can also be
exported by itself.
The number and type of dice to roll is given in a style which should be
familiar to players of popular role-playing games: _a_d_b_[+-*/b]_c_. _a_
is optional and defaults to 1; it gives the number of dice to roll. _b_
indicates the number of sides to each die; the most common, cube-shaped die
is thus a d6. % can be used instead of 100 for _b_; hence, rolling 2d% and
2d100 is equivalent. 'roll' simulates _a_ rolls of _b_-sided dice and adds
together the results. The optional end, consisting of one of +-*/b and a
number _c_, can modify the sum of the individual dice. +-*/ are similar in
that they take the sum of the rolls and add or subtract _c_, or multiply or
divide the sum by _c_. (x can also be used instead of *.) Hence, 1d6+2
gives a number in the range 3..8, and 2d4*10 gives a number in the range
20..80. (Using / truncates the result to an int after dividing.) Using b in
this slot is a little different: it's short for "best" and indicates "roll
a number of dice, but add together only the best few". For example, 5d6b3
rolls five six- sided dice and adds together the three best rolls. This is
sometimes used, for example, in roll-playing to give higher averages.
Generally, 'roll' probably provides the nicer interface, since it does the
adding up itself. However, in some situations one may wish to process the
individual rolls (for example, I am told that in the game Feng Shui, the
number of dice to be rolled cannot be determined in advance but depends on
whether any 6's were rolled); in such a case, one can use 'roll_array' to
return an array of values, which can then be examined or processed in an
application-dependent manner.


Package Version Architecture Repository
perl-Games-Dice-0.43.0-3-omv4000.noarch.rpm 0.43.0 noarch OpenMandriva Unsupported Release
perl-Games-Dice - - -


Name Value
/usr/bin/env -
perl >= 1
perl(Exporter) -
perl(Games::Dice) -
perl(if) -
perl(strict) -
perl(warnings) -


Name Value
perl(Games::Dice) = 0.43.0
perl-Games-Dice = 0.43.0-3


Type URL
Binary Package perl-Games-Dice-0.43.0-3-omv4000.noarch.rpm
Source Package perl-Games-Dice-0.43.0-3.src.rpm

Install Howto

  1. Enable the repository in Software Repository Picker:
    # om-repo-picker
  2. Install perl-Games-Dice rpm package:
    # dnf install perl-Games-Dice



See Also

Package Description
perl-Geo-WeatherNOAA-4.380.0-3-omv4000.noarch.rpm Perl extension for interpreting the NOAA weather data
perl-Getopt-Long-Descriptive-0.93.0-3-omv4000.noarch.rpm Getopt::Long with usage text and validation
perl-Getopt-OO-0.70.0-5-omv4000.noarch.rpm An object oriented command line parser. It handles
perl-Gnome2-GConf-1.44.0-10-omv4000.x86_64.rpm Perl module for the gnome2-2.x GConf libraries
perl-GooCanvas2-0.60.0-1-omv4000.noarch.rpm Perl binding for GooCanvas2 widget using Glib::Object::Introspection
perl-Graph-Easy-0.750.0-3-omv4000.noarch.rpm Parse Graphviz text into Graph::Easy
perl-Graphics-ColorNames-2.110.0-5-omv4000.noarch.rpm Provides RGB values for standard color names
perl-Gtk2-Ex-FormFactory-0.670.0-2-omv4000.noarch.rpm Gtk2-Ex-FormFactory - Makes building complex GUI's easy
perl-Gtk2-Ex-PodViewer-0.180.0-5-omv4000.noarch.rpm A Gtk2 widget for displaying Plain old Documentation (POD)
perl-Gtk2-Ex-Simple-List-0.500.0-4-omv4000.noarch.rpm A simple interface to Gtk2's complex MVC list widget
perl-Gtk2-ImageView-0.50.0-7-omv4000.x86_64.rpm Perl bindings to the GtkImageView image viewer widget
perl-Gtk2Fu-0.110.0-5-omv4000.noarch.rpm GTK2 Forked Ultimate, a powerful layer on top of Gtk2 (forked from ugtk2)
perl-HTML-ResolveLink-0.50.0-5-omv4000.noarch.rpm Resolve relative links in (X)HTML into absolute URI
perl-HTML-Scrubber-0.150.0-1-omv4000.noarch.rpm Perl extension for scrubbing/sanitizing html
perl-HTML-SimpleLinkExtor-1.270.0-2-omv4000.noarch.rpm A simple way to extract links