# Virtual dice roll around many times then stop

**URL:** <https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608>\
**Category:** Coding Questions\
**Created:** [January 17, 2019, 11:25pm UTC](https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608 "2019-01-17T23:25:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 18, 2019, 2:01am UTC](https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608/3 "2019-01-18T02:01:58Z")

</div>

pls. repair your above post and reformat your code first!  
( asked you already with your first thread )

in processing IDE use  
[ctrl][t]

and copy paste to here into

> \</\>

not “”

even the problems are very different many parts of the code i see already here

> [@Virtual dice dots not being drawn](https://discourse.processing.org/t/virtual-dice-help/7508):
>
> I can’t figure out why the dots aren’t being drawn after the random variable is decided. Please help. The point is to make the die “roll around” 7 times slower each time, and then stopping. //LED Dice Virtual Simulation By Harie, Xiang, Michael, Muhammed float r = 6; int rr = 6; int d = 300; void setup() { size(500, 500); background(0, 255, 255); } void draw() { fill(255, 0, 0); ellipse(250, 35, 30, 30); } void mousePressed() { float distance = dist(mouseX, mouseY, 250, 35); if…

---

_[View the full topic](https://discourse.processing.org/t/virtual-dice-roll-around-many-times-then-stop/7608)._
