Go Back   Novahq.net Forum > Games > Delta Force

Delta Force Anything to do with the Delta Force series of games, DF1, DF2, LW, TFD, BHD, DFX, AF etc.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-23-2016, 07:24 AM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

Is RaNDom truly random?

Random functions don't seem to be truly random.

After trying DORND without success I've resorted to the code below in various forms and with mixed results.

Code:
if never then
set v1,0
endif

if past 1 and elapse 1 then
    consol# "v1,",v1
    consol# "v1,",v1
    consol# "v1,",v1
endif

if eq v4,1 and never then
    set v1,0
endif

if random 3 and ne rnd, 2 and ne rnd, 3 then
    set v1,1
else if ne rnd, 1 and ne rnd, 3
    set v1,2
else if ne rnd, 1 and ne rnd, 2
    set v1,3
endif
endif
endif

if eq v1,1 and ne v1,2 and ne v1,3 and never then
    set v4,1
    SSNtoWP 4,1
endif

if eq v1,2 and ne v1,1 and ne v1,3 and never then
    set v4,1
    SSNtoWP 4,2
endif

if eq v1,3 and ne v1,1 and ne v1,2 and never then
    set v4,1
    SSNtoWP 4,3
endif
Still doesn't work.

Last edited by Guest001; 04-23-2016 at 07:46 AM.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off

Forum Jump


All times are GMT -5. The time now is 11:26 AM.




Powered by vBulletin®