- What types of random values can I generate?
- You can generate four types: Integers (whole numbers within a specified range, useful for dice rolls, lotteries, or random selection), Decimals (floating-point numbers with configurable decimal places, ideal for probability simulations or weighted randomness), Strings (random character sequences with customizable length and character sets), and UUIDs (Universally Unique Identifiers, standard 128-bit identifiers for unique IDs).
- How random are the generated numbers?
- The generator uses JavaScript's Math.random(), which produces pseudorandom numbers (deterministic but appear random). For most applications (games, simulations, testing), this is sufficient. However, for cryptographic purposes (passwords, security tokens), you should use cryptographically secure random number generators (Web Crypto API) as Math.random() is not cryptographically secure and can be predicted.
- Can I generate multiple random values at once?
- Yes, you can specify a count to generate multiple values in one operation. This is useful for batch generation, creating test datasets, generating multiple random IDs, or producing arrays of random numbers for simulations. Each generated value is independent and follows the same distribution rules you've configured.
- What character sets can I use for random strings?
- You can customize random strings with combinations of: numbers (0-9), uppercase letters (A-Z), lowercase letters (a-z), and symbols (special characters). Common combinations include alphanumeric (numbers + letters, 62 characters, good for IDs), hex (0-9, A-F, 16 characters, compact), base64 (URL-safe, 64 characters), or fully custom sets based on your specific requirements.
- What are UUIDs and when should I use them?
- UUIDs (Universally Unique Identifiers) are 128-bit identifiers that are virtually guaranteed to be unique across time and space. They're ideal for: database primary keys (distributed systems), session IDs, API tokens, file names (avoiding collisions), and any scenario requiring globally unique identifiers. UUIDs come in versions (v1: time-based, v4: random), with v4 being most common for random generation.