web原子操作

飞道科技

@dfeidao/atom-web > num数值操作

External module: num数值操作

Index

Functions


Functions

random

random(len: number): string

Defined in num/random.ts:16

随机数

example:

import random from '@dfeidao/atom-web/num/random';
const str = random(4); // '4633'
const str1 = random(17); // '37567501890539057'

Parameters:

Name Type Description
len number 几位数

Returns: string