Using more random rand generation function