### Real Vim ninjas count every keystroke - do you?

###### Pick a challenge, fire up Vim, and show us what you got.

```Your VimGolf key: please sign in

\$ gem install vimgolf
\$ vimgolf setup
\$ vimgolf put 4d1ba304c8bb5704eb00012d
```

### Linear congruential generator

http://en.wikipedia.org/wiki/Linear_congruential_generator

##### Start file
```a = 25
b = 7
m = 48
x0 = 0
x1 = (a * x0 + b) % m
x2 = (a * x1 + b) % m
...

|
v

```
##### End file
```a = 25
b = 7
m = 48
x0 = 0
x1 = (a * x0 + b) % m
x2 = (a * x1 + b) % m
...

|
v

0
7
38
45
28
35
18
25
8
15
46
5
36
43
26
33
16
23
6
13
44
3
34
41
24
31
14
21
4
11
42
1
32
39
22
29
12
19
2
9
40
47
30
37
20
27
10
17
0
```

#### View Diff

```11a12,60
> 0
> 7
> 38
> 45
> 28
> 35
> 18
> 25
> 8
> 15
> 46
> 5
> 36
> 43
> 26
> 33
> 16
> 23
> 6
> 13
> 44
> 3
> 34
> 41
> 24
> 31
> 14
> 21
> 4
> 11
> 42
> 1
> 32
> 39
> 22
> 29
> 12
> 19
> 2
> 9
> 40
> 47
> 30
> 37
> 20
> 27
> 10
> 17
> 0
```

### Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 44 remaining solutions by signing in and submitting your own entry
###### #45 Austin Taylor / @austintaylor - Score: 140 - 12/29/10 @ 21:13
```Go0<CR>7<CR>38<CR>45<CR>28<CR>35<CR>18<CR>25<CR>8<CR>15<CR>46<CR>5<CR>36<CR>43<CR>26<CR>33<CR>16<CR>23<CR>6<CR>13<CR>44<CR>3<CR>34<CR>41<CR>24<CR>31<CR>14<CR>21<CR>4<CR>11<CR>42<CR>1<CR>32<CR>39<CR>22<CR>29<CR>12<CR>19<CR>2<CR>9<CR>40<CR>47<CR>30<CR>37<CR>20<CR>27<CR>10<CR>17<CR>0<Esc>ZZ
```

###### #46 Indrek Juhkam / @indrekj - Score: 140 - 12/29/10 @ 21:26
```Go0<CR>7<CR>38<CR>45<CR>28<CR>35<CR>18<CR>25<CR>8<CR>15<CR>46<CR>5<CR>36<CR>43<CR>26<CR>33<CR>16<CR>23<CR>6<CR>13<CR>44<CR>3<CR>34<CR>41<CR>24<CR>31<CR>14<CR>21<CR>4<CR>11<CR>42<CR>1<CR>32<CR>39<CR>22<CR>29<CR>12<CR>19<CR>2<CR>9<CR>40<CR>47<CR>30<CR>37<CR>20<CR>27<CR>10<CR>17<CR>0<Esc>ZZ
```

## 46 active golfers, 108 entries

28
###### #1 - Urtica dioica / @udioica

02/09/2015 at 01:11PM

28
###### #2 - John Braxler / @braxler

05/21/2015 at 07:44PM

30
###### #3 - Douglas Stockwell / @dstockwell

12/30/2010 at 02:45AM

30
###### #4 - Josh Weinberg / @jcweinberg

12/30/2010 at 04:03AM

30
###### #5 - Wei Dai / @clvv42

12/30/2010 at 12:24PM

30
###### #6 - Alain Gilbert / @alain_gilbert

01/02/2011 at 06:51PM

30
###### #7 - derp derp / @derp__

01/06/2011 at 01:03PM

30
###### #8 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 01:32PM

30
###### #9 - dominique pellé / @vimgolfisto

01/06/2011 at 10:24PM

30
###### #10 - Tim Chase / @gumnos

01/07/2011 at 09:11PM

30
###### #11 - Balkoth / @_Balkoth_

01/08/2011 at 07:40PM

30
###### #12 - Pete Johns / @johnsyweb

01/10/2011 at 02:15AM

30
###### #13 - vg / @vimgolfer

02/26/2011 at 05:49PM

30
###### #14 - Justin Love / @wondible

06/18/2011 at 12:42PM

30
###### #15 - not so punk :] / @notsopunk

06/19/2011 at 11:50AM

30
###### #16 - Hu Junfeng / @junfeng

07/18/2011 at 11:42AM

30
###### #17 - You-Siang Lin / @yslinnctu

12/01/2011 at 02:20PM

30
###### #18 - Kerson Hsiao / @KersonHsiao

07/21/2012 at 11:37AM

30
###### #19 - Conner McDaniel / @connermcd

09/19/2012 at 04:12AM

30
###### #20 - Victor Ramirez / @virako

10/20/2012 at 01:04AM

30
###### #21 - Hubba / @HubbaBubbaFett

12/25/2012 at 09:15PM

30
###### #22 - a24f0600 / @a24f0600

01/23/2013 at 04:28PM

30
###### #23 - Joonas Pihlajamaa / @jokkebk

03/18/2014 at 10:36AM

30
###### #24 - pftb12345 / @pftb12345

04/21/2015 at 12:34PM

30
###### #25 - Jon Krause / @jkrause314

12/24/2015 at 08:07PM

30
###### #26 - roudens / @roudens2

02/11/2021 at 10:14AM

31
###### #27 - kmymtksh / @kmymtksh

01/01/2011 at 12:36PM

31
###### #28 - 無ん垢の叫び / @john_ababa

03/10/2012 at 02:20PM

31
###### #29 - Rod Knowlton / @codelahoma

05/27/2012 at 08:09PM

31
###### #30 - Matt / @mcr05

02/13/2015 at 05:09PM