Random testing [at anytime] is useless as it only provides false/positives. Excess glucose
over a period of time is expelled by the kidneys into the urine
. Sugar in urine
, however, can mean other things beside diabetes.
I suggest you see your care provider and ask for an A1c [HbA1c, HgbA1c, HA1c] test. Currently, the A1c is the gold standard in testing for determining type 2 diabetes.