About 229,000 results
Open links in new tab
  1. math.random | Documentation - Roblox Creator Hub

    When called with two integer numbers m and n, returns a uniform pseudo-random integer in the range of m to n, inclusive. Internally, this uses a 32-bit PCG (Permuted Congruential …

  2. How do I use math.random - Community Tutorials - Roblox

    Mar 22, 2023 · Hello everyone, this is a tutorial about math.random in scripts that can be used in many ways. I will show you how you can use math.random with positions. If you think you’re …

  3. How do i use math.random with decimals - Roblox

    Aug 10, 2025 · Additionally to the method shown above, you can also use math.random without arguments, which returns a random float between 0 and 1, and simply multiply to the range …

  4. Random | Documentation - Roblox Creator Hub

    So seeds of 0, 0.99, and math.random () all produce identical generators. If you need to generate a seed and store it for later retrieval, use math.random (max).

  5. Roblox math.random | How to use math.random () efficiently in Roblox

    Sep 21, 2022 · Roblox math.random is a function used in Roblox Studios to generate a random value within some range. This function is handy to spawn different items. The function returns …

  6. math.random fails for very high numbers - different for each ... - Roblox

    4 days ago · print(math.random(1, 1e10)) Works fine on MacOS 26.1. On Windows 11 Pro 64-bit, it errors with this: invalid argument #2 to 'random' (interval is empty) If math.random is meant …

  7. Random | Roblox Lua Wiki | Fandom

    This article will explain the usage of the function, math.random (). It can be used to find many different "random" numbers and help randomize things in your scripting.

  8. Roblox Studio | How To Use math.random () - YouTube

    In this tutorial, Danipoplpl will be showing you how to use math.random () value, with the action being "print" and "pos".

  9. math | Documentation - Roblox Creator Hub

    When called with two integer numbers m and n, returns a uniform pseudo-random integer in the range of m to n, inclusive. Internally, this uses a 32-bit PCG (Permuted Congruential …

  10. Why isn’t math.random not random? - Scripting Support - Roblox

    Jul 15, 2022 · The full call to math.random isn’t that long, I don’t see why making a whole function is necessary, especially when it takes more lines that just doing the code yourself.