ZR

zazencodes/random-number-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

50 stars 6 forks 품질 74 트렌드 4MIT

zazencodes/random-number-mcp는 MCP 서버 후보가 https://github.com/zazencodes/random-number-mcp.에서 수입되었습니다

개요

zazencodes/random-number-mcp는 MCP 서버 후보가 https://github.com/zazencodes/random-number-mcp.에서 수입되었습니다

개요(AI 번역)

파이썬 표준 라이브러리의 필수 임의 번호 생성 유틸리티, integers, floats, weighted selections, list shuffling 및 secure token 생성에 대한 pseudorandom 및 cryptographically 보안 작업을 포함하여.

에이전트 기술 버전 찾고? random-number-skills는 MCP 서버 대신 에이전트 기술로 동일한 임의 번호 생성 전략을 구현합니다.

데모 영상

https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362] https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362]]] https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362]]]]]] [[https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362]]]]]]] [[[[[[https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[

도구

도구 목적 Python 기능
random_int 무작위 정수 생성 [T2]
[T3] 임의의의 부유 [T4]
[T5] 목록에서 아이템을 선택하세요(옵션) [T6]
random_shuffle 신상품 순회 [T8]
random_sample 인구의 고유한 아이템을 선택 [T10]
[T11] 암호화폐화폐환 [T12]
secure_random_int 암호화폐를 암호화폐로 안전하게 보호합니다 `secrets.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Random Number MCP

Essential random number generation utilities from the Python standard library, including pseudorandom and cryptographically secure operations for integers, floats, weighted selections, list shuffling, and secure token generation.

Looking for the agent skill version? random-number-skills implements the same random number generation strategy as an agent skill instead of an MCP server.

Demo Video

https://github.com/user-attachments/assets/303a441a-2b10-47e3-b2a5-c8b51840e362

Tools

Tool Purpose Python function
random_int Generate random integers random.randint()
random_float Generate random floats random.uniform()
random_choices Choose items from a list (optional weights) random.choices()
random_shuffle Return a new list with items shuffled random.sample()
random_sample Choose k unique items from population random.sample()
secure_token_hex Generate cryptographically secure hex tokens secrets.token_hex()
secure_random_int Generate cryptographically secure integers secrets.randbelow()

Setup

Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "random-number": {
      "command": "uvx",
      "args": ["random-number-mcp"]
    }
  }
}

Tool Reference

random_int

Generate a random integer between low and high (inclusive).

Parameters:

  • low (int): Lower bound (inclusive)
  • high (int): Upper bound (inclusive)

Example:

{
  "name": "random_int",
  "arguments": {
    "low": 1,
    "high": 100
  }
}

random_float

Generate a random float between low and high.

Parameters:

  • low (float, optional): Lower bound (default: 0.0)
  • high (float, optional): Upper bound (default: 1.0)

Example:

{
  "name": "random_float",
  "arguments": {
    "low": 0.5,
    "high": 2.5
  }
}

random_choices

Choose k items from a population with replacement, optionally weighted.

Parameters:

  • population (list): List of items to choose from
  • k (int, optional): Number of items to choose (default: 1)
  • weights (list, optional): Weights for each item (default: equal weights)

Example:

{
  "name": "random_choices",
  "arguments": {
GitHub에서 전체 README 보기

설치

uvx random-number-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "random-number": { "command": "uvx", "args": ["random-number-mcp"] } } }