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 / *13476 (+5)
  random()
 
What is the range of values returned from random()? Thanks, Jonathan (27 years ago, 13-Aug-99, to lugnet.robotics.rcx.legos)
 
  Re: help me spend some money!
 
(...) Probably just me, but the first time I glanced over that I saw, "4. Lovers, how can we...." Made me do a double-take there... Guess that's what I get for trying to give up the mighty coffee bean. -- Did you check the web site first?: (URL) (27 years ago, 13-Aug-99, to lugnet.robotics)
 
  Re: when they say "fresh" batteries, they mean it!
 
From: John R. Galloway, Jr. <jrg@dbengines.com> (...) I believe RS232 is in the 9v range (or maybe even 12v), so they are probably fighting that spec there. They could use a voltage up-convertor, but at a loss of efficiency. Two 9vs might have made (...) (27 years ago, 13-Aug-99, to lugnet.robotics)
 
  Re: when they say "fresh" batteries, they mean it!
 
(...) Actually it is common practice these days to power small peripherals off of the supply voltage pins on RS-232 ports as long as you're not trying to pull tooooo much juice. And even a device with a 9-volt power supply can produce higher (...) (27 years ago, 13-Aug-99, to lugnet.robotics)
 
  Re: random()
 
(...) extern long int random (void); Looks like -2^31 to 2^31-1 to me, unless you cast to unsigned int. Or does liberty use 16-bit ints internally? Why not write a short test program to check this out? And why doesn't LegOS use a wrapper around the (...) (27 years ago, 13-Aug-99, to lugnet.robotics.rcx.legos)

Next Page:  5 more | 10 more | 20 more
Redisplay Messages:  All | Compact

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