Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird random result
Message
De
01/09/2022 20:11:52
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
01/09/2022 06:55:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01684912
Message ID:
01684926
Vues:
46
>>I have to manage the numbers generated. For example result of rand(75) + 1 could be 1 and then result of rand(74) + 1 could also be 1. So I have to have a cursor containing humbers I don't want anymore.

Got it- but also the result of RAND()*74+1 can never be 75, meaning 75 can only ever be first in the list, or never seen. The same is true of any result n that can only ever appear before position 77-n.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform