原子操作

飞道科技

@dfeidao/atom-wxapp > num数字类

External module: num数字类

Index

Functions


Functions

random

random(len: number): string

Defined in num/random.ts:16

随机数

example:

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

Parameters:

Name Type Description
len number 几位数

Returns: string