Thread Tools
Old January 14, 2001, 23:24   #1
heardie
Prince
 
heardie's Avatar
 
Local Time: 20:49
Local Date: October 31, 2010
Join Date: Aug 1999
Posts: 684
The truth about Random
Well here it is: I have seen conflicting answers so I'll clear it up:

Random(x), reutrns a value between:
0 to (x-1)

How do I know?

From the WW2 code
Code:
tmpRand = Random(7) + 2;			// Spawn between 2 and 8 units
heardie is offline  
Old January 15, 2001, 10:11   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 11:49
Local Date: October 31, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
That's what I've been saying all along. But much more important: does it work with large numbers? I'm gonna do some serious testing with this when I get home...
Locutus is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:49.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team