Solved Random Number with decimal

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jun 30, 2020
11
1
0
33
I want to push something at a random speed, I don't want to push it too much, so I would rather have a random number between 0 and 1 that is a decimal too (like 0.1, 0.5, 0.7)
set {_variable} to a random integer between number and number makes a number that is too big
 
I want to push something at a random speed, I don't want to push it too much, so I would rather have a random number between 0 and 1 that is a decimal too (like 0.1, 0.5, 0.7)
set {_variable} to a random integer between number and number makes a number that is too big
use number instead of integer

Code:
integer = 1, 2, 3...
Code:
number/double/decimal = 1.1, 2.5, 4.8...

Code:
set {_variable} to a random number between 0 and 1
 
Status
Not open for further replies.