Hi I’m Jasmine Looking for ideas for custom logic for study flash cards. I built a language studying app. I want to add flash cards that can be: -drawn randomly -drawn from entire database or filtered by word category(attribute) I.e. study only verbs -one side is English values, flip side is corresponding values in other language. I built each word as an object and languages are attributes. thank you!
A few pieces of the puzzle:
You could create a microflow that retrieves the n-th item from a list of cards.
Retrieve a list of card from that database, eg of one category and then then use random() to generate a random number and select the card with that number from the retrieved list.
You can use intrand_int2 = rand.nextInt(1000); to get a random integer with 0-1000
In place of 1000, you can pass the count or size of list to ensure you are getting a random integer for the size of words you have, which makes it a dynamic approach. So it is like intrand_int2 = rand.nextInt(<size or length of list>);