![]() |
|
Randomize problem? (*solved*) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: Randomize problem? (*solved*) (/showthread.php?tid=502) |
Randomize problem? (*solved*) - na_th_an - 2012-09-27 I've searched the forums about this issue but I haven't found anything. I gather that RANDOMIZE uses the timer to seed the variable, doesn't it? So this program, depending on the time I take to press the key, should render different numbers. Well, the result is always 6. Code: Print "PRESS KEY": Pause 0If I try... Code: '''The result is always 0, no matter which value is in b. This shouldn't be! I'm using 1.2.9-s888 Re: Randomize problem? - JBGV - 2012-09-27 Hello Na_th_an ! With 1.2.9 (Current Stable Version) seems to work well :roll: Re: Randomize problem? - boriel - 2012-09-27 Sorry for the delay (I'm quite busy these days ).As JGBV says, try the latest version. 1.2.9 changes the RND generator (Britlion proposed a better & faster generator), and I remember I had also to fix-up the RANDOMIZE routine in the meanwhile (you might have an intermediate version). Re: Randomize problem? - na_th_an - 2012-09-28 Thanks, I didn't realise that the stable version was updated, my fault ![]() Cheers! BTW, we have a new release, complete with new library, very soon. Re: Randomize problem? - britlion - 2012-09-28 Yes. We're on this one, now. <!-- m --><a class="postlink" href="http://xkcd.com/221/">http://xkcd.com/221/</a><!-- m --> Re: Randomize problem? - boriel - 2012-09-29 britlion Wrote:Yes. We're on this one, now.LOOOOL! :lol: Re: Randomize problem? (*solved*) - na_th_an - 2012-10-01 The funny thing is, in case you don't know, that joke is about the reason why the PS3 was hacked last year. The random number to generate the signatures was always 4. Re: Randomize problem? (*solved*) - boriel - 2012-10-01 na_th_an Wrote:The funny thing is, in case you don't know, that joke is about the reason why the PS3 was hacked last year. The random number to generate the signatures was always 4.:mrgreen: Well, I knew It was related to PS3 (I own one) the the random number bug, but didn't know it was just that! |