Is there a way to introduce entropy into a program?

This question was asked at chia_network.public on Keybase.

No, but you can use hashes such as the coin id for pseudorandomness, but it would be predictable before the spend.

Update: We are likely to open a CHiP to add a source of randomness to be available in Chialisp.