Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Personal Use (Among Us)
local roles = { {"Judge", 3}, {"Suicide Artist (Imposter)", 4}, {"CEO", 2}, {"Bounty Hunter", 3}, {"Psycho", 1} } local u = 0 local function random(x, y) u = u + 1 if x ~= nil and y ~= nil then return math.floor(x +(math.random(math.randomseed(os.time()+u))*999999 %y)) else return math.floor((math.random(math.randomseed(os.time()+u))*1000)) end end print("Roles in this round: ") local x = 0 for _ ,v in pairs (roles) do if random(1, v[2]) == 1 then x = x + 1 print(v[1]) end end if x == 0 then print("No Roles this round") end
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
5+5 == 10
Replace all substring in string
VWPASSATPOLIZEI
Code golf - ASCII art #1
Basic class example
ROBLOX Ui Play Button
xml panel repeater
Show current system clock
Visala Test
Hand positions in a circle
Please log in to post a comment.