Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Random Variables

7 years ago

I've read the help and info pages, but am still having trouble generating random variables.  I'm trying to make a Blackjack game, so, naturally, I make my minimum value '2'(Two aces).  However, every time I go to that page, all I get is two.  I don't think it's generating random numbers.  How can I fix this? 

Random Variables

7 years ago

If I'm construing this correctly, then no; it isn't generating random numbers. A variable is randomized by being given a value in dice notation (i.e. aDx, where a = # of dice and b = # of sides on each die). It sounds like you've created a variable and set its minimum value to two, and all that'll do is raise the value if it's too low to two.

If you want a random number from 2 to 20, inclusive, for instance, you'd set the variable (not in the Variables tab, but via a link or script) to "1D19 + 1".

Random Variables

7 years ago

I'm going to try it.  Thanks!