Quick actions

cmd+k|ctrl+k

Navigation

Languages

chance?

Snippet info

Language

Lua

Visibility

public

Author

eleatra

Created

2021-11-12T10:06:41.47321Z

Updated

2021-11-30T09:33:18.051539Z

local chance=100
local times=500

local i=0;math.randomseed(os.time())for j=0,times-1 do;local l=math.random(1,chance)if l==1 then;i=i+1;end;end;print("done")print(times.." tries for a 1/"..chance.." chance got")print(i)
INFO