> simple 16-bit random number generator
>
If you compiled your vim with python support you can use the python
random lib, its use the Mersenne twister to generate random numbers
and is very good (MT is very fast too, I use a optimized C code for my
Monte Carlo simulations)
Something like this:
function! Random()
python from random import randint
python from vim import command
python command("return %d" % randint(0,65536))
endfun
Regards,
Kazuo
--
«Dans la vie, rien n'est à craindre, tout est à comprendre»
Marie Sklodowska Curie.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment