Thanks!
most of the time they do move in a random direction, every so often (based on random chance) they try to move closer to the player. As for the levels, yes they are randomly generated. Not exactly in an elegant way, but it works :)
Viewing post in Glitch Dungeon jam comments
Well, if you want to know how I did it, here is the file that generates the grid https://github.com/lenscas/glitch_dungeon/blob/master/src/grid/grid.rs (Warning, not nice code)
I also made https://github.com/lenscas/arena_keeper_quick/blob/master/src/structs/grid/field... which uses a module to generate a noise map and turns those values into various tiles.