[z1819] Cleanup, simplify random and targeted movement generator code

(based on commit e0c1163)

Signed-off-by: stfx <stfx@hotmail.de>

(cleaned version of 112d9ea)

(based on commit [s1377] - 1efc359)