I made a program for creating my tone but not working good

I think your reference is a table of how often those letters appear in written English.