473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Suche schnelle Zufallszahlen-Funktion

Hallo! Ich suche für mein Programm eine Zufalsszahl-Funktion, die eine
große Anzahl von 'Zufalls'-Zahlen in einer kleinen Zeit generiert
(~50000/s). Muss ich mir diese selbst programmieren oder ist dieses
schon in einer Bibliothek vorgefertigt? (.NET und MFC steht mir zur
Verfügung)

Danke für die Hilfe!!!!!!

Jan 2 '06 #1
4 3221
ul********@online.de wrote:
Hallo! Ich suche für mein Programm eine Zufalsszahl-Funktion, die eine
große Anzahl von 'Zufalls'-Zahlen in einer kleinen Zeit generiert
(~50000/s). Muss ich mir diese selbst programmieren oder ist dieses
schon in einer Bibliothek vorgefertigt? (.NET und MFC steht mir zur
Verfügung)

Danke für die Hilfe!!!!!!

Vielleicht einfach die std::random() Funktion nutzen?
LG,
--
Stephan 'hagbard' Grein, <St***********@gmail.com>
http://hagbard.ninth-art.de/
GnuPG-Key-ID: 0x08FA3507
<ESC> :wq
Jan 2 '06 #2
ul********@online.de wrote:
Hallo! Ich suche für mein Programm eine Zufalsszahl-Funktion, die eine
große Anzahl von 'Zufalls'-Zahlen in einer kleinen Zeit generiert
(~50000/s). Muss ich mir diese selbst programmieren oder ist dieses
schon in einer Bibliothek vorgefertigt? (.NET und MFC steht mir zur
Verfügung)

Danke für die Hilfe!!!!!!

Dies ist außerdem keine _deutsche_ Newsgroup, also bitte in englisch
demnächst Posten!

Translation:
This is not a german Newsgroup, please post next time in english.

Greetings,
--
Stephan 'hagbard' Grein, <St***********@gmail.com>
http://hagbard.ninth-art.de/
GnuPG-Key-ID: 0x08FA3507
<ESC> :wq
Jan 2 '06 #3
Stephan Grein wrote:
ul********@online.de wrote:
Hallo! Ich suche für mein Programm eine Zufalsszahl-Funktion, die
eine große Anzahl von 'Zufalls'-Zahlen in einer kleinen Zeit
generiert (~50000/s). Muss ich mir diese selbst programmieren oder
ist dieses schon in einer Bibliothek vorgefertigt? (.NET und MFC
steht mir zur Verfügung)

Danke für die Hilfe!!!!!!

Dies ist außerdem keine _deutsche_ Newsgroup, also bitte in englisch
demnächst Posten!

Translation:
This is not a german Newsgroup, please post next time in english.

Greetings,


I guess hereby lies we should find an implicit apology for your own
earlier post in German... Never mind.
Jan 3 '06 #4
Stephan Grein wrote:
ul********@online.de wrote:
Hallo! Ich suche für mein Programm eine Zufalsszahl-Funktion, die
eine große Anzahl von 'Zufalls'-Zahlen in einer kleinen Zeit
generiert (~50000/s). Muss ich mir diese selbst programmieren oder
ist dieses schon in einer Bibliothek vorgefertigt? (.NET und MFC
steht mir zur Verfügung)

Danke für die Hilfe!!!!!!

Vielleicht einfach die std::random() Funktion nutzen?


There is no 'std::random()' function. Perhaps you need to check your
sources of information about the Standard library. There are two
functions that sound similar: 'std::rand' and 'std::random_shuffle'.
The latter is a template, actually.

V
Jan 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: uwebay | last post by:
Hallo, ich suche die 2. Diskette (von 12) von Borland C++ 3.1. Ich habe selber das Original, das aber ist nicht mehr lesbar und nicht reparierbar. Wer ist so freundlich und schickt mir den Inhalt...
1
by: Thomas | last post by:
Hi, I implemented a composite pattern which should be serializable to xml. After spending some time in the newsgroups, i finally managed serializing, even with utf-8 instead of utf-16, which...
3
by: catweezle2010 | last post by:
Hello NG, I have three files (default.aspx, search.aspx and work.aspx). The way is: login on default (if session is newsession). The loginname I write into as sessionvariable (username). So I...
0
by: Alex | last post by:
Dear colleagues I don't know what the LDAP attribute in active directory (windows 2000) is called which showes if an user account is locked out or not. Could you help me? My code looks like...
3
by: Binew. | last post by:
Hallo Zusammen, ich habe noch ein Problem und zwar bilde ich meine XML Logik in XSD Schemas ab. Ein Regel ist beispielsweise dass folgende Suchkriterien angegeben werden können:...
1
by: mido | last post by:
Hallo Leute , ich muss eine suche-feld erstellen ,so dass mittels dieses feld kann ich nach mehere Dateien in der Datenbank suchen. Meine Frage : Ob soll ich eien anfrage erstellen oder muss...
0
by: jensd1981 | last post by:
Hallo Ich suche nen richtigen Pc-spezialisten der mir ne Seite Aufbaut eine Auktionsplattform mit ner gewinnbeteiligung aber über genaue details reden wir über e-mail MFG J.Düttmann
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.