Hex generator