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.
https://docs.mendix.com/refguide/mathematical-function-calls#5-random
Good luck with the app!
Hi Jasmine,
int
rand_int2 = rand.nextInt(
1000
);
to get a random integer with 0-1000int
rand_int2 = rand.nextInt(<size or length of list>
);