supports calculating random map