hey all. i was thinking about all the help youve given me on my last question and ive realized that i dont think that that is exactly what it is im trying to do. so ive decided to ask if this way would work better:
what i want to do is get a random number between X and Y (which i have been able to do, no problem). I want to assign each EVEN number the value of LEFT and every ODD number the value of RIGHT (i kinda got this to work but not really, it just printed a long string of "rightleftrightleft"). But, i want it to print out the right and left for each number starting with X and ending with Y. Maybe even assign the lefts to an array and the rights to a diffrent array for later use.
then what i want to know is, from those results, how can i display the resulting LEFTs and RIGHTs in a random way ?
and also how can i display the LEFTs and RIGHTs in diffrent places on the page ?
--
im trying to make a script that gives random directions.
you enter a distance (steps you want to take), then it
decides a random number of turns for you to make (based on
odd numbers being left turns and even numbers being right turns) and then it creates random distances between each turn that adds up to the total distance the user input.
basicly all ive been able to do is get the distance input, generate a random number for the ammount of turns. im not much of a programmer, but im willing to learn if somebody would take the time to help out. and please do me a huge favor, if you reply with a big chunk of code, please please add a few comments of what does what so i can understand it a little easier. i have a working knowledge of php, but by far am no master.