basic window with random gen