title: How to ask user for number of times to roll a 6 sided dice?
body: <p>How do I ask a user how many 6 sided dice to roll to add them to their given offset?</p>
  
  <p>I have one 6 sided die rolling and being added to the given offset but need to add user input D6s.</p>
  
  <pre><code>import java.util.*;
  import java.lang.Math;
  
  public class Fun
  
  {
      public static void main(String[] args) {
  
        Scanner scan = new Scanner(System.in); 
        Random rand = new Random();
  
  
  
        System.out.print("How many dice do you want to roll?");
        int D6 = scan.nextInt();
  
  
        System.out.print("What would you like your offset to be?");
        int offset = scan.nextInt();
  
        int roll= rand.nextInt(6)+1;
        int total= roll+offset;
  
        System.out.print("The result of rolling "+D6+"D6+"+offset+" is "       +total);
  
  }
  }
  </code></pre>