11.3.0 • Published 2 months ago

lite-ts-math v11.3.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
2 months ago

Version

代码

RandSeedServiceBase - 随机种子服务

const randSeedService: RandSeedServiceBase;

// 获取随机种子
const res = await randSeedService.get({
    len: 1, // 长度
    offset: 1, // 偏移(选填)
});

// 使用随机种子
const res = await randSeedService.use({
    len: 1
});
  • MathRandSeedService - 默认随机种子服务
const randSeedService: IRandSeedService = new MathRandSeedService([最小长度, 最大长度]);

StringGeneratorBase - 字符串生成器

const generator: StringGeneratorBase;

const res = await generator.generate();
// res = 随机字符串
  • MathStringGenerator - 随机字符串生成器
const generator: StringGeneratorBase = new MathStringGenerator(基数, 生成字符串长度);
11.3.0

2 months ago

11.2.0

2 months ago

11.1.0

2 months ago

11.0.0

5 months ago

3.0.0

1 year ago

1.0.0

1 year ago