use array of pregenerated random values

In case of vector of integers instead of one value use array
of pregenerated random values.

Tests rerun on Ubuntu 14.04.