generating number sequence based on given percentage gives shitty result