added random() method to vector classes
fixed SpriteBatch creation from Material