Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - markjd

#1
Can someone help me please? I have been working through the tutorials and have started playing around with the RND function but have come across something I am unsure about.

A=RND(100)
B=RND(7)

PRINT A, 100, 100
PRINT B, 120, 120
SHOWSCREEN
MOUSEWAIT

If I run this it generates the numbers 72 and 1. If I run it again it generates 100 and 0. If I run it a third time it goes back to 72 and 1 and a forth time 100 and 0, which doesn't seem very random, what am I doing wrong?
#2
Tutorials / Help Please
2010-Aug-26
I am completely new to programming so please excuse me for being stupid. I have been working through the tutorials in the GLBasic manual, but i am having a problem. When I compile the program I get the error:  error : variable is not explicitly defined : bat_y
This is from the pong tutorial and I have even copied and pasted it to be certain I am not making a typing error.
DIM bat_y[2]
DIM bat_x[2]
DIM score[2]

Any help would be appreciated.