Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird random result
Message
De
02/09/2022 00:18:23
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
01/09/2022 20:05:29
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01684912
Message ID:
01684927
Vues:
41
>>>But if you remove duplicates, it's less random?
>
>Maybe "prevent" is a better word? I think it's still random if you prevent duplicates by removing each selection, and making a random selection from the rest.

Less random means still random, but of poorer quality. If you do encryption or the like, it could be used as a vector to crack it. If we use prevented or removed ends up the same. Anyway, as you point out, the generation is bad random because it favours lower numbers due to the way it's generated.
:)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform