# 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:** 64

<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: [June 18, 2024, 10:50am UTC](https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483/64 "2024-06-18T10:50:42Z")

</div>

Almost 3 years later!

Leaner (108 characters) than [my last version](https://discourse.processing.org/t/10-print-chr-205-5-rnd-1-goto-10/15483/55) (113 characters).

```auto
size(530,530);for(int i=0,y=0,n=23;i<n*n;i++){int r=(int)random(2)*n,x=i%n*n;y=i/n*n;line(x+r,y,x+n-r,y+n);}

```

```auto
size(530, 530);
for(int i=0, y=0, n=23; i<n*n; i++)
  {
  int r=(int)random(2)*n, x=i%n*n;
  y=i/n*n;
  line(x+r, y, x+n-r, y+n); 
  }

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/4/7/47323940a0d93c6c9980c22ba71dc13f5d8ff813.png)

Another variation at 108 characters:

```auto
size(530,530);int i=0,n=23;while(i<n*n){int r=(int)random(2)*n,x=i%n*n;int y=i++/n*n;line(x+r,y,x+n-r,y+n);}

```

```auto
size(530, 530);
int i=0, n=23;  
while(i<n*n)
  {
  int r=(int)random(2)*n, x=i%n*n;
  int y=i++/n*n;
  line(x+r, y, x+n-r, y+n);
  }

```

And yet another version at 104 characters!

```auto
size(530,530);int i=0,n=23;while(i<n*n){int r=(int)random(2)*n,x=i%n*n,y=i++/n*n;line(x+r,y,x+n-r,y+n);}

```

```auto
size(530, 530);
int i=0, n=23;  
while(i<n*n)
  {
  int r=(int)random(2)*n, x=i%n*n, y=i++/n*n;
  line(x+r, y, x+n-r, y+n);
  }

```

I will come back in 3 years to revisit this! Maybe sooner… `:)`

> **[Why You Should Take a Break from Coding](https://medium.com/@robertfkillion/why-you-should-take-a-break-from-coding-547d026592d6)**
>
> Learning to code is deeply challenging, deeply rewarding, and can completely hijack your attention… You need to take a break.

Back…

This version has 103 characters:

```auto
size(530, 530);for(int j=0,m=23;j<m*m;){int r=(int)random(2)*m,x=j%m*m,y=j++/m*m;line(x+r,y,x+m-r,y+m);}  

```

```auto
size(530, 530);  
for(int j=0, m=23; j<m*m;)
  {
  int r=(int)random(2)*m, x=j%m*m, y=j++/m*m;
  line(x+r, y, x+m-r, y+m);
  }

```

`:)`

---

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