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.

DarkBASIC Discussion / a randomization question

Author
Message
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 1st Jun 2004 21:16
if i made a code that looked like the one below,(wich i did)how would i keep one terrain. Ok, this is the problem: the randomization thats between 0-30 randomizes every time i test it.
what i mean is it's a new terrain every time i select test. How could i get it to stay one randomized terrain instead of having a new matrix(landscape)every time i test?
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Jun 2004 08:40
Strange...I didn't saw any "randomize timer()" instruction....hmm may be that randomize matrix?. Try this: in the FIRST line of code put:
"randomize XXXXXXXXXX" (where XXXXXXXX is the random seed you want, for example, 5), and with that, it will always use that random seed for all the random needs

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Jun 2004 09:24
re randomize it and use update matrix command


fall down seven times, stand up eight
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Jun 2004 09:57
lol I didn't know that...

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::

Login to post a reply

Server time is: 2025-05-23 22:39:21
Your offset time is: 2025-05-23 22:39:21