if you don't want to use the random function, you'll need an external random generator. i think most linux distros have an entropy device (to produce pseudo random behaviour), you /might/ be able to pipe that back into arduino via serial.
otherwise stick a LDR outside your window and fine tune the sensor to trigger on passing shadows?
i too would like to know why you need this type of randomness...