Improved fraction generator