Files
jim_bridge/shared
Jim Shield 97a1d97678 add random number helper
This function was created to help create random numbers
When you create a table of items with a random hunger value for example
`hunger = math.random(10, 20)` this will be set at script start and never change
using `hunger = {10, 20}` and then calling this function will make it generate a random number every time
It also fallsback if it simply recieved a number instead of a table
-- For example:
-- local hunger = {10, 20}
-- local hungerAmount = GetRandomTiming(hunger)
-- print(hungerAmount) -- number between 10, 20
2025-05-19 19:53:52 +01:00
..
2025-05-03 20:28:13 +01:00
2025-04-22 19:16:31 +01:00
2025-05-17 16:48:23 +01:00
2025-04-20 19:17:40 +01:00
2025-04-14 21:58:38 +01:00
2025-05-19 19:53:52 +01:00
2025-04-12 00:18:48 +01:00
2025-05-15 19:59:51 +01:00
2025-04-22 19:16:31 +01:00
2025-05-17 16:48:23 +01:00
2025-04-20 19:17:40 +01:00
2025-04-30 17:53:26 +01:00
2025-04-01 14:15:50 +01:00
2025-03-08 20:55:05 +00:00
2025-05-03 00:11:28 +01:00