Swap two arguments of function RangeRand to fix error
Add name for arguments of function RangeRand
Fix bugs in function AllotTransTime