/random-vim

Implementation of Lehmer pseudo-random number generator as vim script

Primary LanguageVim ScriptApache License 2.0Apache-2.0

random-vim

An implementation of Lehmer's pseudo-random number algorithm in VimL.

Usage

" echo a random integer in the specified range.
echo Random(1,10)

The result will be an integer greater or equal to 1 and less than or equal to 10.

Installation

NeoBundle 'claperius/random-vim'

With VAM

call vam#ActivateAddons(['random-vim'])

With Vundle

Plugin 'claperius/random-vim'
cd ~/.vim/bundle
git clone https://github.com/claperius/random-vim

With Vimana

vimana install gh:claperius/random-vim

With Plug

Plug 'claperius/random-vim'
cd ~/.vim/bundle
git clone https://github.com/claperius/random-vim

With others

See more plugin managers here.