
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
happyrandom
Advanced tools
Chrome, Firefox, Edge, Safari, IE9+
<script>
// 指定长度的 [ 纯英文字母 ] 随机字符串
console.log( HRandom.en( 10 ) );
// 指定长度的 [ 纯英文字母 ](大写形式)随机字符串
console.log( HRandom.en( 10, true ) );
// 指定长度的 [ 纯英文字母 ](小写形式)随机字符串
console.log( HRandom.en( 10, false ) );
// 指定长度的 [ 纯数字 ] 随机数
console.log( HRandom.num( 10 ) );
// 0-1 的随机数
console.log( HRandom.num() );
// 指定范围的随机数(包含两个边界值)
console.log( HRandom.num( 9, 99 ) );
// 指定长度的 [ 英文字母 + 数字 ] 随机字符串
console.log( HRandom.enNum( 10 ) );
// 指定长度的 [ 英文字母(大写形式) + 数字 ] 随机字符串
console.log( HRandom.enNum( 10, true ) );
// 指定长度的 [ 英文字母(小写形式) + 数字 ] 随机字符串
console.log( HRandom.enNum( 10, false ) );
// [ 自由模式 ] 根据自定义的字符集生成指定长度随机字符串
console.log( HRandom.free( "abcd1234", 10 ) );
// 生成 uuid
console.log( HRandom.uuid() );
// 生成 uuid(大写形式)
console.log( HRandom.uuid( true ) );
// enNum 的简写形式 ( 此例等同于 HRandom.enNum( 10 ) )
console.log( HRandom( 10 ) );
// enNum 的简写形式 ( 此例等同于 HRandom.enNum( 10, true ) )
console.log( HRandom( 10, true ) );
// enNum 的简写形式 ( 此例等同于 HRandom.enNum( 10, false ) )
console.log( HRandom( 10, false ) );
</script>
FAQs
We found that happyrandom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.