Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird random result
Message
From
02/09/2022 00:18:23
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
01/09/2022 20:05:29
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01684912
Message ID:
01684927
Views:
40
>>>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform