while true do --Constant loop
--Selects money type
for i = #money_Type, #money_Type do
wait(.5)
local selected = money_Type[math.random(#money_Type)]
print(selected)
end
In my code above I have a 'money bag type' that gets chosen at random; there's varying money bag types and I wanted to know how I could increase the chance of getting one over the other.
I'm really looking for more effient randomizing methods and one where I can control the chances of one being selected over another.
There's currently two items in my serverstorage ( inside a folder ), that this for loop looks through to choose from, but I plan on having other items in there soon enough.
Q:
How can I increase the random chance of other items in a list/group of items? And is there more efficient randomization methods other than math.random() ?
i've seen usage of tick() but I don't really know how that works

1 comment
Oh, I really like this method. Thanks.