Properties
Similar Topics
Statistics
Comments
3
Participants
2
Subscribers
3
Votes
1
Views
256
Share
How can I create a list of random integer numbers with no two equal?
Answered
Hello everyone,
I know it is possible to create a list of random integer numbers with no two equal, but I have no idea how to do it.
Any suggestions will be appreciated.
Thanks.
 GeoGebra
 Help
 Partners

Contact us
 Feedback & Questions
 This email address is being protected from spambots. You need JavaScript enabled to view it.
 +43 677 6137 2693
© 2020 International GeoGebra Institute
With the Shuffle(<List>) you can do nice things. E.g. if you want to have 5 random but no equal numbers from 1 to 20, you can take the first 5 numbers out of the shuffled list of numbers from 1 to 20 with First(Shuffle(Sequence(1, 20)),5).
chris
Ok I found a way to do it using JavaScript in the Global JavaScript.
So with this, I can create the lists like {5, 4, 2, 3, 1}, {2, 5, 1, 4, 3}, ...
Any suggestions how to do it with GGBscripting?
With the Shuffle(<List>) you can do nice things. E.g. if you want to have 5 random but no equal numbers from 1 to 20, you can take the first 5 numbers out of the shuffled list of numbers from 1 to 20 with First(Shuffle(Sequence(1, 20)),5).
chris
Comments have been locked on this page!