Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Random value with condition
- Cosmic programmer
April 26, 2008, 7:37 am
rate this thread
I need to generate a random value from x to y having increment i.
where x is start value, y is end value.
so if x = 2 and y = 12 and i = 2
then random value should be generated from the following set
and if x = 1 then random number should be picked from the following set
I need to know both in MySQL and PHP and will choose whichever is simpler.