Fix gonext command and do it random

Commit fixes broken gonext command, reading time from maprot, and does
result of this command random.