# 10 print chr$(205.5+rnd(1)); : goto 10

**URL:** https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483
**Category:** Coding Questions
**Created:** [November 14, 2019, 10:30am UTC](https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483 "2019-11-14T10:30:45Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [November 16, 2019, 12:08am UTC](https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483/18 "2019-11-16T00:08:11Z")

</div>

A bit leaner:

```auto
size(500,500);int x=0,y=0;while(y<height){int r=int(random(2))*25;line(x+r,y,x+25-r,y+25);x+=25;if(x>width){y+=25;x=0;}}

```

```auto
size(500, 500);
int x=0, y=0;
while (y<height) {
  int r=int(random(2))*25;
  line(x+r, y, x+25-r, y+25);
  x+=25;
  if (x>width) {
    y+=25;
    x=0;
  }
}

```

🙂

---

_[View the full topic](https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483)._
