1

CamleeW 2019-01-02 03:00

I need help with a program. How do I make a variables value something between one and three? Is this even posible? I feel like I’ve tried everything.

S3B4 2019-01-02 11:14

RND*x gives you a number between 0 and x-1, if I’m not wrong, if you only want integer numbers you could use INT().

So to find a number between 1 and 3

X=INT(RND*3)+1

S3B4 2019-01-02 11:15

Also remember to use RANDOMIZE TIMER at the beginning so it doesn’t return the same thing always.

CamleeW 2019-01-02 19:47

Thank you. I’ve already found a way around the problem, but I’ll use this next time. : )

Blockhead 2019-01-03 10:29

Normally rnd start from 0 to 1

Log in to reply.