# Random Number MCP

> Common pseudorandom and secure random generation utilities.

- **URL**: https://followmcp.com/en/servers/random-number-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 50
- **FMRS Score**: 58/100 (Grade C)
- **Source**: https://github.com/zazencodes/random-number-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.10+
- **Auth**: No credential needed

## Overview
Random Number MCP is an MCP server built on Python's standard library. It generates integers and floats, makes weighted selections, shuffles lists, samples without replacement, and generates secure random integers and hexadecimal tokens. It communicates over stdio.

## Best for
- Users who want to call Python standard-library random functions through MCP.
- Applications that need to distinguish ordinary pseudorandom operations from secure random operations.

## Not for
- Use cases requiring reproducible results or a fixed random seed; the source does not document that feature.
- General data processing beyond the listed random generation tools.

## Required permissions
- The source shows a local stdio client configuration and does not specify file, network, or account permissions.

## Risks
- Functions using Python's random module are fast but not cryptographically secure, so they are unsuitable for tokens or keys.
- Functions using the secrets module are slower and intended for security-sensitive random values such as tokens and keys.
- Random values and tokens may be security-sensitive; handle generated results according to the needs of the application.

## Client config (JSON)
```json
{"mcpServers":{"random-number":{"command":"uvx","args":["random-number-mcp"]}}}
```

## Tools (7)
- `random_int`: Generate a random integer within the specified inclusive bounds.
- `random_float`: Generate a random float within the specified range.
- `random_choices`: Choose a specified number of items from a list with replacement, optionally using weights.
- `random_shuffle`: Return a new list with its items in random order.
- `random_sample`: Choose a specified number of unique items from a population without replacement.
- `secure_token_hex`: Generate a cryptographically secure random hexadecimal token.
- `secure_random_int`: Generate a cryptographically secure random integer below the specified upper bound.
