added window info to rand