C
Cryspy
Guest
Gibt es eine Befehl, as aus einem Arry zufällig ein element ausgesucht wird???
Bitte mit Code hinschreiben
Bitte mit Code hinschreiben
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
int zufallszahl = rand() % 100;
int array[100];
cout << array[zufallszahl]
#include <ctime>
#include <cstdlib>
int main()
{
// rand initialisieren.
srand(time(NULL));
// jetzt kannst du es sooft aufrufen wie du willst und wirst immer andere zahlen erhalten.
rand();
return 0;
}