Set random start value for dial

MC's icon

I'm a beginner using Max, and I'm trying to set a randomised start point between -24 and 0 for a dial with the range -42 to 6. I can get the random number but I can't get it to go into the dial. the dial always starts at the minimum value (-42). Where am I going wrong?

Source Audio's icon

if you want that dial to use random value

when your max patch gets loaded,

don't activate initial value for it, and loadbang random object.

If you want to use it in live device,

think that dial value will get stored with live set, too.

why fo you use floats in random, but insert ints

before and after dial ?