am doing it like this
but it's seems like this random is not working right it gives wrong coords is there onther way to get the right value between bound_x,bound_y and bound_cx,bound_cy?
Edit:
nvm solved!
Code:
mob.Map = gen.mapid; mob.Location = new Location((short)(gen.bound_x + new Random().Next(0, gen.bound_cx)), (short)(gen.bound_y + new Random().Next(0, gen.bound_cy)));
Edit:
nvm solved!