PHP-RandChar is a project mainly written in PHP, it's free.
Simple generate random characters
Use for simple password generator or salt code.