Code center > Suggestions
More realistic mutations
Botsareus:
The more good on using my equation , I already "calculated" it
Anonomous Guest Person:
Er, not to sound simple or dumb, but you could a random number between one and one million, take it's square root, and subtract 1000 by it, then add or subtract the total value.
Or in mathematical/programming form:
1000-(sqrt(rand()*1000000))
That'd certainly make it be in favor of smaller values. In fact, the chances of it changing by a mere one is 1/500, while as increasing/decreasing by 1000 is a full 1/1000000.
(And of course there'd be a safety system to make sure it doesn't get higher then 1000.) (And also, of course, it'd be rounded too.)
Botsareus:
A.G.P. as Num will say :"There is a problem with your logic"
1) At high ranges there are "gaps" in the numbers beings generated
2) It does not generate any negative numbers
(There must be a 50/50 chance of a negative or a postitve number being generated)
Quote:
"And of course there'd be a safety system to make sure it doesn't get higher then 1000.) "
The whole point of the system we are brain storming about is that it has no range limit because there is a high chance that the number will be low range anyway.
Anonomous Guest Person:
1. ?
2. Read it better. That's how much it'll add or subtract, not how much it'll add. That's just the basic theory, and it's rather stupid to ignore an idea simply because it's not detailed enough. I just suggested it because no one seemed to have brought it up.
And also, I more or less meant a safety system with store, and inc, and etc. so that if the targeted memory location is greater then 1000, then it'll divide it by 1000 and use the remainder. Though now that I think about it, that'd reduce all the junk DNA, and possibility of genetic diseases, so it might not be as good as I previously thought it was to implement.
Botsareus:
"That's how much it'll add or subtract, not how much it'll add." you are saying we have an exsisting number and we change it.
My idea is totaly different: The number itself is replaced with a completly new number.
I can see how your idea will work now, Its not a bad idea, still a high range number in your idea will remain a high range number if it changes by a small value.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version