The app should request for the callback from Pyth Entropy provider for the random number. Then that random should be consumed and be integral part of the dapp logic.
Your app should use Pyth price feeds via Pull method. The steps include. 1. Pull/Fetch the data from Hermes. (Check the link below) 2. Update the data on chain. 3. Consume the price. Please follow our comprehensive Pyth EVM guide to to integrate Pyth in less than 5 minutes.