when i use this code, every time the abm is runing i got the this values...
the values 73,74,75,76,78,79
minetest.register_abm({
nodenames = { "deko:deko_birch_sapling" },
interval = 120,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
-
math.randomseed(os.time())
max_height = math.random(1,100)
print('[Deko Mod] Birch Mod 06/12 Loaded max_height!=> '.. max_height )
end
i want here a number between 3 and 8, using math.random(3,8) istnt random...every time the same values.
so to my understanding i should with math.randomseed(os.time()) a random seed for the math.random
any idea how i can get this a bit more random ?