SpaceVim
A modular Vim/Neovim configuration
Home | About | Quick start guide | Documentation | Development | Community | Sponsors | 中文
data#number
API provides some functions to manipulate a number. Here is an example for using this api:
let s:NUM = SpaceVim#api#import('data#number')
let random_number = s:NUM.random(3, 10)
name | description |
---|---|
random() |
an unbounded random integer number. |
random(a) |
an unbounded random number larger than a. |
random(a, b) |
a random number from [a, a + b - 1]. |
Powered by Jekyll