Author Topic: Regarding the seed value function!  (Read 8056 times)

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #15 on: June 29, 2005, 08:53:38 PM »
Quote
So you just don't need to reseed it more than once. If you can find something to the contrary, I'll of course change my opinions, but I'm fairly certain reseeding the random function continuously actually decreases it's statistical randomness ( a wierd thing, I know).

Wouldn't know anything about its statistical randomness. I am not one for advanced stats anyway. Makes my brain hurt.

I don't doubt that it will take billions of calls to repeat the sequence and as I said before, nobody will ever be able to see or probably even detect the difference in the randomness whether we reseed to the timer or not.
It is just a whole lot less repeatable if we do.

I think the issue is more whether the program takes a hit on speed judging by Bots little test program.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #16 on: June 29, 2005, 08:57:34 PM »
Quote
Pinball heh I thought that was a vedio game , I could not figure out how to control anything exsept the start button, and delay.
Quote
So you just don't need to reseed it more than once. If you can find something to the contrary, I'll of course change my opinions, but I'm fairly certain reseeding the random function continuously actually decreases it's statistical randomness ( a wierd thing, I know).

Pinball in the original penny arcade was a vertical slot into which you dropped a token or a penny. It would bounce around the pins and statistically would land close to the centre.
Certain channels would give prizes just like a slot machine.
Other versions of the game would have sliding shelves covered in coins that could be knocked off into the collection tray.

You still see newer versions of them now.

There are no controls. You put the coin in and that's it.
On my excel game, the delay control just slows down the graphical display.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Greven

  • Bot Destroyer
  • ***
  • Posts: 345
    • View Profile
Regarding the seed value function!
« Reply #17 on: June 30, 2005, 05:26:55 AM »
I dont know how many random calls there is in DB, but even if there is a sequence, it doesnt matter, there are so many different variables to take into account and therefore DB will not repeat it self inside the same simulation.

The reseeding function does slow down the program alot, but I dont know have much, but if we could get 25% or more in speed, it could matter alot, to only reseed the function once, and what I have advocated before, that it will be much easier to find the small overflow errors etc., for you programmers.

Think about it. A user get an error. He (or she) check that the seed value is 5346.5 (or some other stupid number) and the error occured in the 54.459 cycle. The user writes a bugreport on this, you check it in VB, and finds the error! THIS WILL MAKE POSSIBLE BUGREPORTING MUCH EASIER. Forget the old days when a bug is reported and non other are able to reproduce the extract same bug/error etc.

Halleluja for a DB without strange errors!  :D
« Last Edit: June 30, 2005, 05:28:39 AM by Greven »
10010011000001110111110100111011001101100100000110110111000011101011110010110000
011000011000001100010110010111101001110100110010111100101000001000001111001011101
001101001110011011010011100011110100111000011101100100000100110011010011100110110
010110000011100111101001110110111101011101100110000111101001101001110111111011101
01100100000111010011010001100001110111010000010001001000010100001

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #18 on: June 30, 2005, 11:01:00 AM »
Currently (2.37.2) the seed is randomized on every cycle.
I don't think removing it would make a huge difference to the run speed since there is such a lot of stuff happening per cycle. In Bots little program the cycle rate is thousands per second because it is so short. removing the reseed function there makes a big difference but probably not in DB. Still every little bit counts.

There aren't vbery many random call really in DB. They only happen when seeding or reseeding robots (for X Y coordinates), during repro for mutations and when a robot's DNA call the rnd function.

Other than that DB is completely deterministic.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Regarding the seed value function!
« Reply #19 on: June 30, 2005, 03:38:10 PM »
PY, I know I maid it a little scroovy. Thats probebly were you got confused.

  If you click the top most button , and then right after it click the middle button the only thing you really notice is a difference in speed.
   But If after clicking the top most button you click "stop / reset" a couple of times, then click the middle button you should see indeed "a flower thingy" witch is a little waird but proves nums point. You can also get the same result if the middle button is the first button you click.

P.S.

I really should start thinking about making my stuff more user frandly.
« Last Edit: June 30, 2005, 03:42:46 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Regarding the seed value function!
« Reply #20 on: June 30, 2005, 05:53:58 PM »
Scroovy.   :wacko:

A Bunch of Thing Scroovy Quares.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Regarding the seed value function!
« Reply #21 on: June 30, 2005, 07:37:24 PM »
GG with that , I am at 800 kills right now , dont have time to reply to nonsence.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #22 on: July 01, 2005, 09:00:30 AM »
As if it wasn't hard enough to become a Quare in the first place, now I have to thing even harder so I can be scroovy too.

Rock on all you Scroovy Quares. Keep on thinging! :Headbang:
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #23 on: July 01, 2005, 09:02:24 AM »
Quote
PY, I know I maid it a little scroovy. Thats probebly were you got confused.

  If you click the top most button , and then right after it click the middle button the only thing you really notice is a difference in speed.
   But If after clicking the top most button you click "stop / reset" a couple of times, then click the middle button you should see indeed "a flower thingy" witch is a little waird but proves nums point. You can also get the same result if the middle button is the first button you click.

P.S.

I really should start thinking about making my stuff more user frandly.
I tried all that but I just saw random dots with no pattern. Maybe I didn't leave it going long enough.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Regarding the seed value function!
« Reply #24 on: July 01, 2005, 12:03:52 PM »
Anyway what you were supposed to see is for a  short ammount of time the one with reseed should form stuff like this:



With the points turning red really quickly , witch is not supposed to happen.
« Last Edit: July 01, 2005, 12:05:25 PM by Botsareus »

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Regarding the seed value function!
« Reply #25 on: July 01, 2005, 12:46:58 PM »
Still can't even open the thing from this PC. Clicking your link just opens an HTML text file.  :blink:
Even pasting it into VB doesn't work. There are so many errors that it would be quicker to rewrite a new program.

Very scroovy indeed!
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D