There is no law in Thailand which dictates that travellers must have
*****
baht in cash in their wallets. It is pure whimsy at the discretion of border officials. If you're happy with letting your life be dictated by the whimsy of people in uniforms then by all means do as others suggest in this group. If not, then perhaps visit a different country for your holiday. Some feel that life's too short to waste on appeasing power tripping pettiness.