To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2163
2162  |  2164
Subject: 
Re: Programming the RCX in VB
Newsgroups: 
lugnet.robotics
Date: 
Sat, 2 Jan 1999 22:17:23 GMT
Original-From: 
B van Dam <bvandam@westbrabant.net[antispam]>
Viewed: 
1134 times
  
Hi John,

If you're looking for VB5 sources visit the site below.

CU  Bert


Visit my site on Lego, Robot's and Visual Basic at
http://home.concepts.nl/~bvandam/index.html

-----Oorspronkelijk bericht-----
Van: John Cutter <lugnet.robotics@lugnet.com>
Aan: lego-robotics@crynwr.com <lego-robotics@crynwr.com>
Datum: zaterdag 2 januari 1999 22:20
Onderwerp: Programming the RCX in VB


I'm starting on the program for my Mindstorms robot and I had a question.
What is the best way to get a random number using VB?  At first glance I • can
find a register that appears to generate a random number between 1 and • 32768,
but how do I limit this range?  How do I [easily] get a random number • between,
say, 5 and 25?

Also, has anyone posted VB source code (with comments) either here or on a
website somewhere?  That would be a big help to those of us who are just
getting started...

Thanks!

-- John
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics


--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: Programming the RCX in VB
 
In article <000e01be369d$acc1cc...-van-dam>, B van Dam <bvandam@westbrabant.net> writes (...) If you really mean "How do I generate a random number within VB" then click "Help" in VB and search for random. If you mean "How can RCX code generate a (...) (26 years ago, 3-Jan-99, to lugnet.robotics)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR