title: How to Program a, "Deathroll" in C#?
body: <p><strong>Disclaimers:</strong> I have very little programming experience and that which I <em>do</em> have has been used to learn the absolute basics of C# so my general understanding of certain terms are limited. <em>(I will be using any terms or lingo that I've not seen/heard as a learning experience for my future programming en devours. <strong>So speak as if I know what you're talking about.</strong>)</em></p>
  <blockquote>
  <p>Right, so before I ask my question - I'll need to explain what a,
  &quot;Deathroll&quot; even is to begin with. A <strong>Deathroll</strong> or <strong>Deathrolling</strong>
  is an Random Numbers Generation (RNG) game many people who play
  MMORPGs do in order to <em>&quot;gamble&quot;</em> with in-game currency.</p>
  <p><em>The process is very simple</em>: Two players agree to Deathroll &gt; they place bets on a certain amount of in-game currency &gt; they determine
  who rolls first &gt; the first player rolls from an agreed upon number
  using an input command on a chat box <em>(i.e /roll 100)</em> &gt; a number from
  1 to the agreed upon number is generated <em>(i.e rolled: 50)</em> &gt; the
  second player rolls from the number generated <em>(i.e /roll 50)</em>
  <em><strong>[Each subsequent roll uses the results of the last roll as the top-end.]</strong></em> &gt; the first player to roll a (1) loses and the game is
  over.</p>
  </blockquote>
  <p>My goal is to create a basic program that can do this using C# .net where the User and the Console are the players. I've figured that in order to make this feasible I need to be able to accomplish the following:</p>
  <ol>
  <li>Have the console generate and print a number from 1 to 100.</li>
  <li>Make it possible for the user to input a line/command/text that generates a new value from the number previously generated by the console.</li>
  <li>Have the console read the User Generated Value and then generate a new number from that value.</li>
  <li>Have this process repeat until either the user or the console generates a value of (1).</li>
  </ol>
  <p>My main worry is how I would be able to get the console to read a randomly generated number and then have it generate a new number that is less than or equal to the number it rolled from. My limited understanding of how all of this works makes me imagine that I'd need to created an &quot;if&quot; condition for every possible number that could be generated from 100 to 1, but that sounds rather taxing and convoluted for what I'm trying to achieve. If there is a shorter/easier way to make this happen I'm all open to suggestions.</p>
  <p><strong>TLDR;; I am looking for a way to get the computer to read a number and then generate a new one based off the number it read.</strong></p>