The flash.crypto package contains a function for generating cryptographically strong random sequences.