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"
local number = math.random(1, 10)
# change 1 to be the smallest possible number
# change 10 to the be the biggest possible number
local randomnumber = Math.Random(1, 10) -this is a random number between 1 and 10
local canprint = True
local count = 0
while canprint do --gonna loop when canprint is true
Print(randomnumber) --gonna print random number
wait(1) --waiting one sec
count = count + 1 --gonna count to one. it will say that we have done it 1 time already
if count == 10 then --if we print it 10 times it will count canprint as false
canprint = false
Code Example |
---|
Lua :: LUKAO150 |
Lua :: pico8 draw dot |
Lua :: fivem get closest player |
Lua :: How to make a working gun in lua code |
Lua :: Roblox studio increase variable when holding W |
Lua :: swap number in lua |
Lua :: lua to float |
Lua :: roblox for loop |
Lua :: How to use Humanoids in Roblox Lua |
Matlab :: matlab symbolic derivative |
Matlab :: matlab number to string |
Matlab :: matlab random |
Matlab :: symbolic polynomial fraction to row vector |
Matlab :: SAVE TABLE IN MATLAB |
Basic :: theme leaf concatenate |
Basic :: robocopy sync one way |
Elixir :: elixir rescue |
Elixir :: elixir |
Elixir :: elixir new structs |
Scala :: new scala project |
Scala :: if scala |
Actionscript :: silk road block-cypher |
Excel :: excel or function |
Perl :: perl sigils |
Pascal :: exceptions in pascal |
Powershell :: call function powershell |
Clojure :: what is var in Clojure |
Assembly :: pickle dump into specific directory |
Assembly :: dd utility explained examples |
Javascript :: jquery vslidation remove spaces from input |