With the latest version of Mac OS X, Mavericks, there is a cool new feature which allows you to generate passwords for websites and sync them with your iOS device. This allows you to have a secure random password which is then automatically stored. Then, when you use your iOS device it will automatically pull the password across allowing you to use it on the move. This is a great feature which gives you secure passwords.
To enable such a feature open System Preferences located in your Applications folder. Select the iCloud preference pane.
From the list ensure the keychain option is selected. This will enable the syncing between Macs and iOS devices.
The password generator will generate a unique password with a combination of letters, numbers and hashes. This allows for a complex, secure, password that is unlikely to be guessed.
This is a great feature within iOS and your Mac. It allows long complex passwords to be automatically generated, stored and synced with all of your devices.