Fix bug in random
This can cause an infinite loop
Add XNA for Windows