To get a random int between 0 and n-1, multiply the next floating point random number times n, casting to an int and getting its absolute value. To use this to find a random object in an array or...