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 / 2178
2177  |  2179
Subject: 
Re: Programming the RCX in VB
Newsgroups: 
lugnet.robotics
Date: 
Sun, 3 Jan 1999 01:18:44 GMT
Original-From: 
B van Dam <bvandam@westbrabantSAYNOTOSPAM.net>
Viewed: 
4361 times
  
I didn't ask that question, I answered it....

CU  Bert

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

-----Oorspronkelijk bericht-----
Van: Peter Hesketh <pbh@phesk.demon.co.uk>
Aan: lego-robotics@crynwr.com <lego-robotics@crynwr.com>
Datum: zondag 3 januari 1999 2:09
Onderwerp: Re: Programming the RCX in VB


> In article <000e01be369d$acc1cce0$53b0acc1@fam.-van-dam>, B van Dam
> <bvandam@westbrabant.net> writes
> > > What is the best way to get a random number using VB?
> 
> 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 random number" look at Kekoa's
> Opcodes Reference and search for random.
> 
> If you mean "How can I convert a random number 1 to 32768 into a random
> number 5 to 25 using VB", then use:
> 
> Random5to25 = 5 + 21 * int(( random1to32768 - 1 ) / 32768 )
> 
> If you mean something else, please pose your question in a less
> ambiguous manner.
> --
> Regards - Peter Hesketh, Mynyddbach, Mon.
> Forty reasons why a dog is better than a woman: number 16
> "Dogs like it when you leave lots of things on the floor."
> --
> 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



1 Message in This Thread:

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

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