Math.Random()*10

Durchläufe:
0 = Bis manueller Abbruch
Maximale Zufallszahl: