you cannot say it is 38 others random... you only know 5 cards, therefore 47 cards are random.
just memorize the following rule,
2 * the number of outs * the number of cards left to flop
in your case,
~36% hitting your flush.
the entire game is an expected value game. if you have a 36%...