i need to generate a bunch of random numbers that will be influenced by some number (a positive integer say up to a 1000) and i need to have these biased random numbers within a certain range (from 1 to 44).
i managed to generate purely random numbers within my range
witht the rand function:
but how do i influence the rnd number generation?Code:
some_array[i] = rand() % 45;