Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-22-2007, 06:59 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Random...

I remember a while ago Kai posted here about the random not being random. (http://forums.graalonline.com/forums...ad.php?t=44692)
What happens is that when random is used in a timeout, it forms a pattern, though it doesn't do this when used in for. So I made my own little graphing thing quickly and messed around with it.
It seems the pattern is ALWAYS the same(if the same values are entered), no matter how many times it's called. Though the beginning is always different, after a few it begins to fall back on what seems to be the same pattern. See in the animation, these are the separate graphs I made.


I guess this isn't really a tech support thing, but I noticed Stefan seems to be frequenting the tech support section a lot lately, so I really just want to know why this does this. And would it effect things like baddies using random functions to determine successful attacks or such likely scenarios? I could understand patterns emerging, but why the same pattern, each time, and why isn't the beginning part of the pattern?
Reply With Quote
 


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 +2. The time now is 06:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.