- 2

Code a dice

3rd Aug 2017, 1:49 PM
youtube guru
youtube guru - avatar
3 Respuestas
+ 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; }
3rd Aug 2017, 1:59 PM
2_3rr0r5
2_3rr0r5 - avatar
+ 3
You need to first choose/specify a language ^^
3rd Aug 2017, 5:48 PM
visph
visph - avatar
- 1
i dont know
3rd Aug 2017, 1:50 PM
youtube guru
youtube guru - avatar