Yes, there is an int. If returns the integer portion of a scalar. Example: $num = rand(100); $num = int($num); Will give you a random integer between 0 and 100. :) Hope this helps. ------------------------------- Frank Wiles <frank at wiles.org> http://frank.wiles.org -------------------------------