improved the rand command, it is now possible to change the range or pass a list.