Skip to first unread message

mounib Mekhilef

unread,
Jan 11, 2017, 7:00:56 AM1/11/17
to MIT App Inventor Forum
Hi,

Much progress since my last request thanks to you.
Now I'm facing a little issue.
I need to generate random permutations of a set of integers. 
Let's say we have a set composed of {11,234,9,0,11}
I need to generate random permutations of these numbers.
the idea is to use that to place randomly some components on a chess.
I'll probably have to put that in a list....
Anyone having been through this ? 
Thanks in advance.

Moon

Abraham Getzler

unread,
Jan 12, 2017, 12:23:51 PM1/12/17
to MIT App Inventor Forum
See attached
ABG

blocks.png
permute.aia
2017-01-12 12_19_09-5554__build_.png

Abraham Getzler

unread,
Jan 12, 2017, 12:51:16 PM1/12/17
to MIT App Inventor Forum

mounib Mekhilef

unread,
Jan 12, 2017, 2:25:32 PM1/12/17
to MIT App Inventor Forum
Hi ABG,

That's nice of you ! 
Great it works and open a new channel for me as a very early beginner.
Thx again.
Reply all
Reply to author
Forward
0 new messages