Choose a random value out of four options??
Elfizm
Member Posts: 489
Hello everyone
Can I have a rule that chooses a random value from four numbers that are given? Eg. If I have 4,5,2,7 can I make it choose one of those four numbers?
Or is this a complicated thing? Just wanted to make sure i wasn't missing something simple!
Thanks
Elfizm
Can I have a rule that chooses a random value from four numbers that are given? Eg. If I have 4,5,2,7 can I make it choose one of those four numbers?
Or is this a complicated thing? Just wanted to make sure i wasn't missing something simple!
Thanks
Elfizm
Comments
Thanks so much my way was a bit longer and this is so simple it's embarrassing I didn't think of it.
Made a demo and it works great
Elfizm
So here is a quick info if a game. I have boxes, heaps if them, but only four can be selected. They are choosen randomly. Once selected they becomes used and can not be opened again but can still be selected.
So how would I make it choose a random value excluding the ones that are used. So if I select box 2, 5, 6, and 7. It will choose a random one using method suggested.
But if a new lot of four are selected and it's. 4, 5, 8, 9
How can I make it only to choose a random on out of 4,8, and 9 even though 5 is selected.
Hope that makes sense
Thanks
Elfizm
Many thanks
Elfizm
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User