<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FRoller%2FRoll_%28String%29</id>
	<title>Dice/Roller/Roll (String) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://skizzerz.net/DiceRoller/index.php?action=history&amp;feed=atom&amp;title=Dice%2FRoller%2FRoll_%28String%29"/>
	<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/Roller/Roll_(String)&amp;action=history"/>
	<updated>2026-05-03T08:13:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://skizzerz.net/DiceRoller/index.php?title=Dice/Roller/Roll_(String)&amp;diff=408&amp;oldid=prev</id>
		<title>Skizzerz: Created page with &quot;{{APIdoc|Roller.Roll Method (String)}} Rolls dice according to the given dice expression. Please see Dice Reference for more information about dice expressions.  {{ns}}  =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://skizzerz.net/DiceRoller/index.php?title=Dice/Roller/Roll_(String)&amp;diff=408&amp;oldid=prev"/>
		<updated>2017-04-13T19:27:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{APIdoc|Roller.Roll Method (String)}} Rolls dice according to the given dice expression. Please see &lt;a href=&quot;/DiceRoller/Dice_Reference&quot; title=&quot;Dice Reference&quot;&gt;Dice Reference&lt;/a&gt; for more information about dice expressions.  {{ns}}  =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{APIdoc|Roller.Roll Method (String)}}&lt;br /&gt;
Rolls dice according to the given dice expression. Please see [[Dice Reference]] for more information about dice expressions.&lt;br /&gt;
&lt;br /&gt;
{{ns}}&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;&lt;br /&gt;
public static RollResult Roll(&lt;br /&gt;
    string diceExpr&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
; ''diceExpr''&lt;br /&gt;
: Type: System.String&lt;br /&gt;
: A [[Dice Reference|dice expression]].&lt;br /&gt;
&lt;br /&gt;
=== Return value ===&lt;br /&gt;
Type: [[Dice/RollResult|Dice.RollResult]]&lt;br /&gt;
&lt;br /&gt;
The result of rolling ''diceExpr''.&lt;br /&gt;
&lt;br /&gt;
== Exceptions ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Exception !! Condition&lt;br /&gt;
|-&lt;br /&gt;
| ArgumentNullException || ''diceExpr'' is {{cs|null}}.&lt;br /&gt;
|-&lt;br /&gt;
| [[Dice/DiceException|DiceException]] || An error was detected with ''diceExpr''.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When a DiceException is thrown, the exception will contain an ErrorCode property which describes the error in more detail.&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
This is equivalent to calling [[../Roll (String, RollerConfig)|Roller.Roll(String, RollerConfig)]] with a {{cs|null}} value for ''config''. See the [[../Roll|Roll overload page]] for more details.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;&lt;br /&gt;
RollResult result = Roller.Roll(&amp;quot;1d20+4&amp;quot;);&lt;br /&gt;
Console.WriteLine(result.Value);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Skizzerz</name></author>
		
	</entry>
</feed>