Play
Multi-Player
Coins
Community
Settings
Help
Community   Maps   Forum   Mail   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Off-topic Forum   

Posts 1 - 6 of 6   
Anyone know PHP?: 5/9/2016 17:11:50


GeneralPE
Level 56
Report
I suck at coding. Anyone want to help me write a program that takes 20 preset multiple choice items, takes 10 of those and randomizes answer order? PM me.
Anyone know PHP?: 5/9/2016 17:24:56


TeamGuns 
Level 58
Report
I think it's not that hard to do. My programming is a bit rusty, but your program should be something like that:

Declare variables
a for item 1, b for item 2,...
z = 10 for the number of items you want to choose
create a list for these items

From 1 to z (using a control flow):
Choose randomly inside the list one variable
Display the variable
Take the variable off the list




At the end you would have a randomized order with 10 random items. You can search for the adequate terms on the internet, but that base I gave should work.

Edited 5/9/2016 17:27:16
Anyone know PHP?: 5/9/2016 17:40:04


Cata Cauda 
Level 57
Report
I use Minecraft for randomized orders.
Anyone know PHP?: 5/9/2016 18:26:00


knyte 
Level 58
Report
lmao
Anyone know PHP?: 5/10/2016 16:56:03


Epicular
Level 46
Report
I could write that pretty easily
Anyone know PHP?: 5/10/2016 17:06:52


GeneralPE
Level 56
Report
@TeamGuns
I know arrays...could you do all that with an array?
Posts 1 - 6 of 6   

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service