implemented a random alphabet generator