You've already been given good advice, but allow me to focus it: VARIABILITY, VALUE, POWER, ACCURACY. Do you need the resistor to be a fixed value or does it need to vary? If variable, you might need a potentiometer. If the variability itself must vary according to automatic conditions, you don't need a simple resistor ... you need a CIRCUIT itself there.
You should know the value needed at any rate. Since resistors are built over a wide range of power dissipation (since you ARE converting electron motion to molecular motion -- HEAT), you need to know the power rating of that resistor.
Finally, your application might require a fairly precise resistor value. Common resistors are fairly sloppy ... +/- 5%. That means your 100-ohm resistor might be anything from 95 to 105 ohms. Your application might not tolerate more than 1% variance from the designed value, or 0.1% ... and such accurate resistors are correspondingly expensive. GOOD LUCK!