To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 366
365  |  367
Subject: 
random()
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 13 Aug 1999 14:18:12 GMT
Viewed: 
974 times
  
What is the range of values returned from random()?

Thanks,
Jonathan



Message has 1 Reply:
  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 (...) (25 years ago, 13-Aug-99, to lugnet.robotics.rcx.legos)

2 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