<< Back to Off-topic Forum   Search

Posts 1 - 6 of 6   
Anyone know PHP?: 2016-05-09 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?: 2016-05-09 17:24:56


TeamGuns
Level 59
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?: 2016-05-09 17:40:04


Cata Cauda
Level 59
Report
I use Minecraft for randomized orders.
Anyone know PHP?: 2016-05-09 18:26:00


l4v.r0v 
Level 59
Report
lmao
Anyone know PHP?: 2016-05-10 16:56:03


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


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