This causes a problem when random numbers are used for sizes. The second time the function is called, the values are different.