Code center > Suggestions

Regarding the seed value function!

<< < (4/6) > >>

PurpleYouko:

--- 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).
--- End quote ---

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.

PurpleYouko:

--- 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.
--- End quote ---

--- 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).
--- End quote ---

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.

Greven:
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

PurpleYouko:
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.

Botsareus:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version