Fix gonext command and do it random

Commit fixes broken "gonext" command, reading time from maprot, and does
result of this command random.
It also removes get_next() function, because it messes up the maprot
and won't be already used.