i need an adjustable current source other than lm334(i searched online but could only find that). my specs are 10mA constant current with an operating voltage of 1 to 35V, through hole and cheap :-D
You could use a TL431 shunt regulator as shown in Figures 31 and 32 of this data sheet. These are inexpensive and can use an inexpensive general purpose NPN transistor such as a 2N2222, but I see no advantage of that over the LM334 unless you need to go over 10mA or the voltage rating of the LM334.