title: Generate a number based on a given number of digits
body: <p>I'm trying to write a program that generates a hex number based on a given number of digits. For instance, say that the user inputs 3, I want to generate a hex number of 0x000 and store it in some variable. Another example, say the user inputs 4 the hex number to be generated will be 0x0000.</p>
  <p>Any ideas?</p>
  <p>Thanks in advance.</p>