Utils

Github Repo C Header C source JS source
cesanta/mongoose-os mgos_utils.h mgos_utils.c  

mgos_system_restart_after

void mgos_system_restart_after(int delay_ms);

Restart system after the specified number of milliseconds

mgos_rand_range

float mgos_rand_range(float from, float to);

Return random number in a given range.

edit this doc