Added: Random function for encryption parameters