[Etoys] [FUN]Etoy random number

Bert Freudenberg bert at freudenbergs.de
Wed May 21 15:42:38 EDT 2008


On 21.05.2008, at 20:06, Karl Ramberg wrote:

> Bert Freudenberg wrote:
>> On 21.05.2008, at 16:57, Karl Ramberg wrote:
>>
>>
>>> I read this page about random numbers yesterday and thought it  
>>> would  be fun to do something similar in etoy.
>>> http://www.boallen.com/random-numbers.html
>>>
>>> It turns out the random number generator have some issues and  
>>> make  big regions of same predictions, so don't base your next  
>>> encryption  software on etoys ;-)
>>>
>>
>> Hehe. You are not observing what you think you are. Your script is   
>> missing one critical tile to do what you intended it to do. And  
>> even  then, it does not quite what you want.
>>
>> To truly fix this, resize your ellipse to 1x1 pixels and use  
>> "stamp",  not the pen.
> Ok here is a fixed version of the script and the results are much  
> better. So it seems you can implement encryption software in etoys ;-)


That version looks much nicer indeed :)

And now we just need to fix the bug that made you create var1 as  
workaround ...

- Bert -




More information about the Etoys mailing list