Random function is not "Random"
jhaas
Member Posts: 233
Ever try the random function? I created a simple test that generates a random number between 1 and 25 every time you touch the screen.
This works fine when running on the Mac. However when you load this to the device via the viewer app, I get the SAME pattern of numbers every time I run the app....11, 2, 25, 13...
Is this a known bug or is there some way to "seed" the random function I'm not aware of. I searched for Random in the wiki and only get the initial page.
This is a real problem. )
Cheers.
This works fine when running on the Mac. However when you load this to the device via the viewer app, I get the SAME pattern of numbers every time I run the app....11, 2, 25, 13...
Is this a known bug or is there some way to "seed" the random function I'm not aware of. I searched for Random in the wiki and only get the initial page.
This is a real problem. )
Cheers.
Comments
A little help please...
I'll try to look for it in other cases.
Aren't those the same numbers for the island of Lost.(TV show)
yeah, tshirtbooth, told me about this problem a week ago. i told him then i thought it was somehow related to 'seeding' on the iphone/touch.
definately needs to be sorted out.
noodles...
Weird one. Fix coming soon?