---
title: "Discussion on \"A random dice roller\" | Hashnode"
description: "Discussion on \"A random dice roller\". So I was sitting in Barnes and Nobles this evening and I realized, \"Hey, I have WiFi!\". So I decided to knock off a day on my challenge and write something that would take less than 5 mins. I decided on after much thought (Much longer than it should ..."
url: "https://hashnode.com/posts/a-random-dice-roller/5d2e798cfed40d7b049874af"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A random dice roller](https://lazar.hashnode.dev/a-random-dice-roller?utm_source=hashnode&utm_medium=feed)

So I was sitting in Barnes and Nobles this evening and I realized, "Hey, I have WiFi!". So I decided to knock off a day on my challenge and write something that would take less than 5 mins. I decided on after much thought (Much longer than it should ...

Jul 17, 2019 · lazar.hashnode.dev  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#fun](https://hashnode.com/tag/fun)
-   [#learning](https://hashnode.com/tag/learning)
-   [#coding](https://hashnode.com/tag/coding)
-   [#lazar](https://hashnode.com/tag/lazar)

## Written by

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

@Lazar

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

Programmer, Python nut, Meteor and hugo fan

I am a 15 year old developer. That basically all about me...

## Responses 1

Markdown supported · ⌘↵ to post

[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.
