possibly working random method added to basic