use library function for getting 2 random element instead of my own, worse algorithm