Added another example for rand