How can I save a random number in my data type?

Hi, i have a question, well, i have a form where i can add data, but i want to generate a random number in my input, so in my input i put in the display value this "todecimal(text(rand()*(10^6),"000000"))"
when i view my db, in the field i only get 'null', so, how can i generate a random number and store on my data type? 

thanks! 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data