using now random function from given lib of course