Show random card

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
meixingm
Posts: 5
Joined: Tue Nov 18, 2014 3:49 am

Show random card

Post by meixingm » Sat Jan 17, 2015 5:13 am

Hi!

I'm making a quiz app and I'd like to know if it was possible to show a random card. It's a multiple choice quiz, and I don't want it to go in any particular order.

Appreciate any suggestions!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Show random card

Post by Simon » Sat Jan 17, 2015 5:26 am

Hi meixingm,

Code: Select all

on mouseUp
put random(10) into tVar --10 is the number of cards but look up "random" in the dictionary for an upper/lower limit version
go card tVar
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply