rand, window stuff