. */ mt_srand(microtime()); $result = array(); $result["speedthroughwater"] = mt_rand(0, 10); $result["speedoverground"] = mt_rand(0, 5); $result["waterdepth"] = mt_rand(1, 30); $result["watertemperature"] = mt_rand(15, 25); $result["satellites"] = mt_rand(0, 10); echo json_encode($result); ?>