Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help with random

Author
Message
Towelie
20
Years of Service
User Offline
Joined: 21st Apr 2004
Location:
Posted: 29th Apr 2004 04:13 Edited at: 29th Apr 2004 04:14
Well I've finaly had some time to work on DBpro and I'm alreayd having problems


First why dosent this work?? It tells me command out of place at line 38 where the loop command is


Two more things

Is there an easier way to do what I'm trying to do here?

And can you have a loop inside a loop?



---edit--- woops sorry for the misleading title I was origonaly just gonna ask about help with making a random not be zero but I ran into more problems
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 29th Apr 2004 04:39
change it to x=rnd(6)


CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Apr 2004 04:43 Edited at: 29th Apr 2004 04:44
x=rnd(5) + 1 will get numbers between 1 and 6

yes you can nest loops inside each other.


Home of the VB.NET Class Builder Utility - Demo and FULL versions now available!!
Towelie
20
Years of Service
User Offline
Joined: 21st Apr 2004
Location:
Posted: 29th Apr 2004 05:11
Ok thnx yea that works

Login to post a reply

Server time is: 2024-11-26 14:35:25
Your offset time is: 2024-11-26 14:35:25