Random Number Parameters

Hey guys

Recently started using IPP for a project using Astro.
What mathematical equation would I use for building a generator which would produce a random number between two numbers.. for example:

{1d100} - so far i've learned that this will give me a random number between 1 and 100.. although, if i want to have a random number between anything higher than the minimum being 1.. say.. between 250 and 500 I cant do it

Any ideas?

Many thanks guys =)

Comments

  • There may be a more elegant solution that I'm not aware of, but {1d251+249} should generate 250-500.
  • You, sir... kick ass
    Thanks so much =)

    You're probably right about there being a better solution, but if it does the job, thats good enough for me. Thanks again

Leave a Comment