Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 31st Jul 2005 23:20
If a randomize with the same seed is used, will it be the same on different systems or not?

My programs on average: 500-2000 lines
An average GameCube game: 5000+
Windows XP: Too much to fit on this screen.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2005 23:58
Yes.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 31st Jul 2005 23:58
good question - lets all display what randomize seed 1 produces as its first 3 numbers...



I get 8,9,9

My Website:
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 1st Aug 2005 01:02
i get 8,9,9 too thats reel strange.... wait pc's cant generate random numbers can they
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 01:04
no they cant - they perform maths based on the time and the seed..

My Website:
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 01:14
no it isnt,

if you use the same seed for rnd(99999999) and run it on a billion computers it will renerate the same number, thats why people use randomize timer()


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 01:36 Edited at: 1st Aug 2005 10:57
Quote: "no it isnt,"


to what? Thats what I just said.. Computers CANT create RANDOM numbers. They create numbers based on the seed and some maths.

*re reads post*

Whoops - Just realised that was worded wrong.. I meant time or the seed.. not AND.. lol Damn boolean algebra!

My Website:
Xolatron old
21
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 1st Aug 2005 02:42 Edited at: 1st Aug 2005 02:42
Interesting. Another way to get even MORE random - save a random number to a file when the program ends - that can be used on startup to be combined with timer to make it so that users won't get the same numbers one if they play the game so much that they manage to start it at the exact same time (I know, it's virtually impossible )

Nicholas Thompson, your post is weird - the whole sig got included in the quote .

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 10:58
Its whats technically known as a typo I opened the quote tag twice instead of opening once and makign the second one and end quote tag..

My Website:
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 13:55
ok then yes your right computers cannot truly generate random numbers, but then again humans cant exactly do random numbers, since if you ask to say a number between 1-10 one number will allways have more 7 or something.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 15:03
Not necessarily true.. When a human picks a number - there is often no real logical reason for it being that number. In that respect, humans are random as computers base the "random" number on a maths function. However, I agree that humans are not 100% random as when you ask someone, most of the time they'll umm and ahh for a few second which implies they're trying to pick one..

You could start a whole philosophical debate on if anything is truely random, like cloud formation and the chaos theory and so on...

My Website:
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 15:13
well i dont think anything in the galaxy is truely random but its just unpredictable, like if you say something happen in space and went back in time 1 day the same thing would happen right?


Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 1st Aug 2005 15:19
Quote: "well i dont think anything in the galaxy is truely random "


Thats because God forgot to put randomize timer() at the begining.


The word "Gullible" cannot be found in any English Dictionary.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 15:24
ah, clumsy coding


Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 1st Aug 2005 15:27
Indeed. Should of spent 7th day de-bugging instead of resting.


The word "Gullible" cannot be found in any English Dictionary.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 15:34
i think he spent the 7th day compiling the 100billion lines of code, amazing to think the universe was coded in dbp, wonder how god got around the 3million object limit. maybe he used sprites for distance galaxys


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 15:38
Well it comes down to that age old question of "if a tree falls in a forest and there is nobody there to hear it, does it make a sound?".. This could be answered with "no, because there is nobody there - it is excluded from the system until there IS someone within range of the object at which point it is un-excluded and thus there WILL be someone there to hear it"

My Website:
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 15:41
but virtually everything makes a sound so ofcourse it did thus meeming that saying useless.

and im sure god made it so that if no ones within visual distance of a fall ing tree then the tree will automatically fall i mean if we didnt all the moving animations will make the universe lag.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 1st Aug 2005 16:29
do you think Earth has culling enabled?! hehe..

Back on topic - it seems the only thing that deterimins a pseudo random number is the seed.

My Website:
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 1st Aug 2005 16:34
yeah I mean I run on a Pentium 12 256bit with a geforce 789000
my eyes have a response time of 12 and I run at about 45 fps....

Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Aug 2005 17:26
Quote: "do you think Earth has culling enabled?! hehe.."


well duh, why else can you see both sides of a paper?

and i think that one way glass was a bug in dbp`s shader routines.


Login to post a reply

Server time is: 2025-06-03 17:36:34
Your offset time is: 2025-06-03 17:36:34