New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

dsh-random

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-random

随机工具:安全随机整数/字符串、数组抽样与洗牌(crypto)

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

dsh-random · 随机工具

安全随机整数/字符串、数组抽样与洗牌。纯 Node(crypto)实现。

提供的工具

工具作用
random_int随机整数
random_string随机字符串
random_pick抽样/洗牌

安装

dsh plugin add dsh-random

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-random"。

用法示例

生成一个 6 位数字验证码
→ 调用 random_string(length=6, charset="digit")

Keywords

deepseek-harness

FAQs

Package last updated on 20 Aug 2026

Related posts