|
| 28 Mar 2013 06:23 PM |
I mean if I did
l = math.random(1,100)
if l == 1-5 then
would that work? |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Mar 2013 06:26 PM |
| That would work, I just want to know if 1-5 would work. |
|
|
| Report Abuse |
|
|
kert109
|
  |
| Joined: 31 Dec 2009 |
| Total Posts: 681 |
|
|
| 28 Mar 2013 06:28 PM |
Or if you want to do something like between 20 and 100 then:
if Num >= 20 and Num <= 100 then
Basicly it checks if its 20 or over, then it checks if its 100 or below.
If you just want it to be 20 - 100 and NOT 20 nor 100 then just remove the '='
~kert109 |
|
|
| Report Abuse |
|
|
kert109
|
  |
| Joined: 31 Dec 2009 |
| Total Posts: 681 |
|
|
| 28 Mar 2013 06:28 PM |
| Oh sorry, 1-5 will not work. |
|
|
| Report Abuse |
|
|
dmjoe
|
  |
| Joined: 01 May 2009 |
| Total Posts: 2387 |
|
|
| 28 Mar 2013 06:28 PM |
No, the script would read that as
1 -5 1 minus 5
print(1-5): -4
~print("pew")~ |
|
|
| Report Abuse |
|
|