random to dos.  probably out of date