Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren- 2
Code a dice
3 Antworten
+ 3
you could write a class but if you want to, you can also write a function which gives you random numbers:
int throwDice(int numFaces=6)
{
return (rand()%numFaces)+1;
}
+ 3
You need to first choose/specify a language ^^
- 1
i dont know