---
title: "Comment by Mark on \"A random dice roller\" | Hashnode"
description: "You have two def dice5(): and can&#39;t throw 6 This could probably be a for loop instead: while inc &lt; amount: , like for inc in range(amount):"
url: "https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af/comment/5d2ece02e5fb56b7475245dc"
---

[Discussion](https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af)

Comment [A random dice roller](https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af)

[Mark](https://hashnode.com/@mverleg)

[Jul 17, 2019](https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af/comment/5d2ece02e5fb56b7475245dc)

You have two `def dice5():` and can't throw 6

This could probably be a `for` loop instead: `while inc < amount:`, like `for inc in range(amount):`

[Lazar](https://hashnode.com/@Lazar)

[Jul 17, 2019](https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af/comment/5d2ece02e5fb56b7475245dc#reply-5d2ee05ea09efe0e64b89f8e)

Oh thanks so much! Probably an error while I was typing it in. 😛 I'll go and fix it right way.
