Add append function for random types.