[Gambas-user] Am I doing something wrong?

fabien gambasfr at ...11...
Wed Jun 29 19:28:24 CEST 2005


Le Mercredi 29 Juin 2005 17:46, A Person a écrit :
> Wednesday, 29 June 2005
>
> Good Day All . . .
>
> I created a random character generator for passwords using Randomize and
> Rnd but I am getting some strange returns.
>
> It is not unusual to get double (almost every result) and triple
> (occasionally) returns in the randomly generated password. Returns such
> as (for example) "nn", "FF", "44", and "LLL". A password may look like
> "5HH7cmmU".
>
> To combat this I created a loop that says loop until this character is
> different from the last with a Randomize in the loop.
>
> This solves the problem but it takes away from the randomised aspect of
> the program.
>
> My guess is that the speed of my machine loops through Gambas's random
> generator so fast that double hits may occur. My guess only.
>
> Any better work arounds?
>
> Thanks.
>
> Paul
>
have you set the key

Randomize timer ?




> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list