Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Will this Print Not Work?

Asked by 9 years ago

Hey, Here is the print script:

RandomNumber = random.math(1, 2)
print(RandomNumber)

Can someone help me in determining why it won't work? Thanks!

2 answers

Log in to vote
0
Answered by
ItsMeKlc 235 Moderation Voter
9 years ago

It wasn't printing because the script has an error. line 1 should be : math.random(1,2)

Ad
Log in to vote
0
Answered by 9 years ago

Where it says random.math(1, 2) You need to change that to math.random(1, 2)

Answer this question