Added an optional count to the random method.. Rearranged functions...