6 Replies Latest reply on Aug 22, 2013 5:47 AM by resdesign

# Random exercise for children

My my my! I'm afraid I need a real coding expert for this!

I tryed to get a solution googling around but unsuccessfully.

Ok I try to explain.

See an example of the exercise at

http://drop.chardez.be

For those exercises I've 10 elements (.png) of legos.

What I want to do is get randomly two of the elements/per exercise with their math value (one.png: value 1, two.png: value 2 etc.) and code the right answer (< = or >) relatively to the values of the elements displayed.

I hope this will be clear enough.

Thanks!

DC

• ###### 1. Re: Random exercise for children

Hi I actually you say exercise and then I more seaching web. I don't know but I hope that is helpful link : http://paultrani.com/2013/06/dragdrop-in-edge-animate-part-2-multiple-with-touch/

• ###### 2. Re: Random exercise for children

I've already watched this video which was very helpful, but it give no clues for random display.

• ###### 3. Re: Random exercise for children

I am not sure this would help but here is how I would do it: I would create 2 random numbers and use them to load the images.

I tried this here and it does load the two symbols randomly and then calculate the value.

Maybe you could adapt this to your composition which I suppose is using drag n drop.

https://app.box.com/s/kdzxdfb7g2hy8isydfa8

• ###### 4. Re: Random exercise for children

Thanks Resdesign, you are my goddess for this month (and maybe for the next one)! :-D

This is exactly what I needed to load my images randomly and give it a value.

Now I'll try to do my best to connect the result and the response (right: using drag and drop) in the code.

As to me, I'm not a god of coding!

Thanks again!

iDidge

• ###### 5. Re: Random exercise for children

Fantastic, Marie

• ###### 6. Re: Random exercise for children

Thanks Darrell and iDidge. Hope you get it all working with drag n drop!