Autor Beitrag
sTk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Do 15.03.07 16:25 
Hallo,

folgende Thematik:

ich will zufällig 3 Zahlen im Bereich von 1 bis 50 auswählen lassen.
Soweit kein Problem.

Jetzt will ich das ganze aber 1000 mal machen und dann ermitteln, wie oft jede Zahl dabei war.
Und da steh ich im Moment auf der Leitung.

Kann mir evtl. jemand helfen?

Gruß
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Do 15.03.07 16:27 
jede zahl müsste annähernd gleich oft vertreten sein ;)

du kannst die n array nehmen bis 50 und da die anzahlen speichern.

Suche in: Delphi-Forum, Delphi-Library ARRAY

mfg
Cookie007
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Do 15.03.07 16:30 
du könntest der anschaulichkeit halber auch istbox Items nehmen und zählen
oder eine Tabellenfunktion
über die listbox kannst du mit savetofileund loadfromfie gut spichern.

cokie007

p.s viel verfolg

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)
sTk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Do 15.03.07 16:32 
Der Ansatz mit dem Array ist schon gut!
Ich weiß nur noch nicht, ob ich das gebacken kriege ;)
sTk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Fr 16.03.07 08:06 
Hi,

also danke nochmal F34r0fTh3D4rk für den Ansatz! Hab das jetzt mit nem Array auf die Reihe bekommen!

Gruß