CS notes & tricks



Random number generators typically return numbers in the range 0.0 to 1.0, or 0 to 65,535, etc.

	check that you're making the correct assumption about the numbers returned if you use this function.



A text string '1923' is a smaller value than a text string '931', because the comparision is done on

	the first character, then second character etc. To compare properly, make sure that

	the data items are being treated as numbers, not text strings.