Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client_age = 30
- client_death = 85
- percentage_of_bad = 99999999999999999999 -- (1-100)
- local sum = (client_death-client_age)*365
- local countup = 0
- percentage_of_bad = percentage_of_bad*.01
- for i=1,sum do
- local random = math.random()
- if random <= percentage_of_bad then
- countup = countup+1
- end
- end
- if countup ~= 1 then
- print(countup.." bad things happened in the client's "..client_death.." year life span ("..(client_death*365).." days), after the client's tracked age of "..client_age..".")
- else
- print(countup.." bad thing happened in the client's "..client_death.." year life span ("..(client_death*365).." days), after the client's tracked age of "..client_age..".")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement