Horje
how to get a random number in lua Code Example
how to get a random number in lua
local randomNumber1 = math.random(1, 10) --Returns a number between 1 and 10.
local randomNumber2 = math.random(10) --Also returns a number between 1 and 10.

print(randomNumber1, randomNumber2) --OUTPUT EXAMPLE: "6, 8"




10

Related
lua for loop Code Example lua for loop Code Example
wait function lua Code Example wait function lua Code Example
print table lua Code Example print table lua Code Example
roblox go thru all players Code Example roblox go thru all players Code Example
lua not equal Code Example lua not equal Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9