fork download
  1. lotto <- function(names, output) {
  2. lottos <- matrix(nrow = length(names), ncol = output + 1)
  3. lottos[,1] <- t(sample(names, length(names)))
  4. options <- t(apply(lottos, 1, function(x) sample(names[(x[1] != names)], output)))
  5. lottos[,-1] <- options#[times,]
  6. return(lottos)
  7. }
  8.  
  9. challenge <- "Rebbeca Gann;Latosha Caraveo;Jim Bench;Carmelina Biles;Oda Wilhite;Arletha Eason ;Theresa Kaczorowski;Jane Cover;Melissa Wise;Jaime Plascencia;Sacha Pontes;Tarah Mccubbin;Pei Rall;Dixie Rosenblatt;Rosana Tavera;Ethyl Kingsley;Lesia Westray;Vina Goodpasture;Drema Radke;Grace Merritt;Lashay Mendenhall;Magali Samms;Tiffaney Thiry;Rikki Buckelew;Iris Tait;Janette Huskins;Donovan Tabor;Jeremy Montilla;Sena Sapien;Jennell Stiefel"
  10. input <- read.table(textConnection(challenge), sep = ";", colClasses = "character")
  11.  
  12. output <- lotto(input, 15)
  13. output <- cbind(output[,1], rep(">", nrow(output)), output[,-1])
  14.  
  15. apply(output, 1, cat, "\n")
Success #stdin #stdout 0.17s 176448KB
stdin
Standard input is empty
stdout
Vina Goodpasture > Ethyl Kingsley Oda Wilhite Sacha Pontes Rikki Buckelew Janette Huskins Tiffaney Thiry Carmelina Biles Donovan Tabor Drema Radke Lashay Mendenhall Lesia Westray Tarah Mccubbin Rosana Tavera Jim Bench Sena Sapien 
Grace Merritt > Carmelina Biles Jennell Stiefel Dixie Rosenblatt Tarah Mccubbin Jaime Plascencia Theresa Kaczorowski Magali Samms Vina Goodpasture Lesia Westray Sena Sapien Lashay Mendenhall Rebbeca Gann Rikki Buckelew Jim Bench Janette Huskins 
Arletha Eason  > Jim Bench Janette Huskins Tiffaney Thiry Carmelina Biles Jane Cover Magali Samms Lesia Westray Pei Rall Latosha Caraveo Dixie Rosenblatt Vina Goodpasture Jeremy Montilla Grace Merritt Ethyl Kingsley Sena Sapien 
Drema Radke > Vina Goodpasture Rosana Tavera Jeremy Montilla Jane Cover Tarah Mccubbin Carmelina Biles Ethyl Kingsley Arletha Eason  Lashay Mendenhall Jaime Plascencia Latosha Caraveo Tiffaney Thiry Jennell Stiefel Donovan Tabor Dixie Rosenblatt 
Lesia Westray > Tarah Mccubbin Rikki Buckelew Jeremy Montilla Ethyl Kingsley Oda Wilhite Sacha Pontes Jim Bench Lashay Mendenhall Janette Huskins Donovan Tabor Tiffaney Thiry Vina Goodpasture Grace Merritt Jaime Plascencia Pei Rall 
Melissa Wise > Iris Tait Janette Huskins Jane Cover Dixie Rosenblatt Lashay Mendenhall Theresa Kaczorowski Sena Sapien Rikki Buckelew Tiffaney Thiry Jim Bench Rebbeca Gann Drema Radke Arletha Eason  Vina Goodpasture Ethyl Kingsley 
Lashay Mendenhall > Tarah Mccubbin Latosha Caraveo Lesia Westray Pei Rall Ethyl Kingsley Grace Merritt Janette Huskins Donovan Tabor Jaime Plascencia Tiffaney Thiry Melissa Wise Jeremy Montilla Rebbeca Gann Iris Tait Jim Bench 
Janette Huskins > Jane Cover Tiffaney Thiry Carmelina Biles Lesia Westray Pei Rall Melissa Wise Theresa Kaczorowski Rikki Buckelew Iris Tait Jim Bench Magali Samms Oda Wilhite Latosha Caraveo Jaime Plascencia Lashay Mendenhall 
Carmelina Biles > Sena Sapien Rosana Tavera Jeremy Montilla Janette Huskins Theresa Kaczorowski Pei Rall Jaime Plascencia Iris Tait Sacha Pontes Dixie Rosenblatt Donovan Tabor Grace Merritt Melissa Wise Tiffaney Thiry Jim Bench 
Tiffaney Thiry > Dixie Rosenblatt Carmelina Biles Theresa Kaczorowski Vina Goodpasture Oda Wilhite Rebbeca Gann Magali Samms Drema Radke Rosana Tavera Lesia Westray Jaime Plascencia Rikki Buckelew Arletha Eason  Janette Huskins Pei Rall 
Dixie Rosenblatt > Lashay Mendenhall Rikki Buckelew Ethyl Kingsley Rosana Tavera Janette Huskins Melissa Wise Jane Cover Lesia Westray Jeremy Montilla Theresa Kaczorowski Vina Goodpasture Rebbeca Gann Magali Samms Donovan Tabor Arletha Eason  
Theresa Kaczorowski > Ethyl Kingsley Jennell Stiefel Magali Samms Sena Sapien Rosana Tavera Tarah Mccubbin Melissa Wise Jeremy Montilla Iris Tait Jim Bench Sacha Pontes Vina Goodpasture Latosha Caraveo Carmelina Biles Lashay Mendenhall 
Jane Cover > Iris Tait Janette Huskins Theresa Kaczorowski Lesia Westray Vina Goodpasture Rikki Buckelew Latosha Caraveo Magali Samms Rosana Tavera Lashay Mendenhall Rebbeca Gann Carmelina Biles Drema Radke Jaime Plascencia Sena Sapien 
Sena Sapien > Tarah Mccubbin Rikki Buckelew Jeremy Montilla Janette Huskins Lesia Westray Drema Radke Jennell Stiefel Grace Merritt Oda Wilhite Lashay Mendenhall Rebbeca Gann Vina Goodpasture Arletha Eason  Theresa Kaczorowski Melissa Wise 
Oda Wilhite > Carmelina Biles Tiffaney Thiry Lashay Mendenhall Sacha Pontes Tarah Mccubbin Pei Rall Rikki Buckelew Melissa Wise Jane Cover Lesia Westray Dixie Rosenblatt Donovan Tabor Vina Goodpasture Janette Huskins Arletha Eason  
Jaime Plascencia > Carmelina Biles Tiffaney Thiry Magali Samms Iris Tait Oda Wilhite Donovan Tabor Tarah Mccubbin Latosha Caraveo Rosana Tavera Theresa Kaczorowski Pei Rall Drema Radke Jim Bench Sena Sapien Jennell Stiefel 
Jennell Stiefel > Latosha Caraveo Dixie Rosenblatt Arletha Eason  Lashay Mendenhall Sacha Pontes Jane Cover Rebbeca Gann Lesia Westray Jeremy Montilla Janette Huskins Donovan Tabor Oda Wilhite Grace Merritt Theresa Kaczorowski Tarah Mccubbin 
Rosana Tavera > Janette Huskins Sacha Pontes Grace Merritt Ethyl Kingsley Tarah Mccubbin Donovan Tabor Tiffaney Thiry Jane Cover Jaime Plascencia Drema Radke Sena Sapien Oda Wilhite Pei Rall Iris Tait Melissa Wise 
Pei Rall > Arletha Eason  Lesia Westray Dixie Rosenblatt Sena Sapien Latosha Caraveo Iris Tait Tarah Mccubbin Jennell Stiefel Rosana Tavera Rikki Buckelew Vina Goodpasture Grace Merritt Jane Cover Lashay Mendenhall Jeremy Montilla 
Jeremy Montilla > Arletha Eason  Magali Samms Dixie Rosenblatt Lesia Westray Jane Cover Carmelina Biles Tarah Mccubbin Rosana Tavera Iris Tait Rikki Buckelew Lashay Mendenhall Jim Bench Janette Huskins Latosha Caraveo Theresa Kaczorowski 
Sacha Pontes > Carmelina Biles Rikki Buckelew Theresa Kaczorowski Iris Tait Rebbeca Gann Jennell Stiefel Lesia Westray Tiffaney Thiry Grace Merritt Vina Goodpasture Jim Bench Latosha Caraveo Oda Wilhite Janette Huskins Pei Rall 
Latosha Caraveo > Tiffaney Thiry Drema Radke Sacha Pontes Iris Tait Rosana Tavera Theresa Kaczorowski Lashay Mendenhall Tarah Mccubbin Donovan Tabor Oda Wilhite Rikki Buckelew Jane Cover Arletha Eason  Dixie Rosenblatt Grace Merritt 
Jim Bench > Donovan Tabor Lashay Mendenhall Tarah Mccubbin Carmelina Biles Dixie Rosenblatt Iris Tait Lesia Westray Pei Rall Grace Merritt Oda Wilhite Arletha Eason  Rikki Buckelew Jane Cover Rosana Tavera Jennell Stiefel 
Iris Tait > Vina Goodpasture Theresa Kaczorowski Tarah Mccubbin Jeremy Montilla Magali Samms Grace Merritt Tiffaney Thiry Donovan Tabor Rikki Buckelew Drema Radke Lashay Mendenhall Janette Huskins Jane Cover Dixie Rosenblatt Pei Rall 
Magali Samms > Grace Merritt Donovan Tabor Jennell Stiefel Latosha Caraveo Pei Rall Vina Goodpasture Lashay Mendenhall Jane Cover Rebbeca Gann Jim Bench Sacha Pontes Tiffaney Thiry Jaime Plascencia Oda Wilhite Theresa Kaczorowski 
Tarah Mccubbin > Jim Bench Lashay Mendenhall Lesia Westray Carmelina Biles Sena Sapien Drema Radke Vina Goodpasture Iris Tait Jane Cover Jeremy Montilla Latosha Caraveo Donovan Tabor Arletha Eason  Rikki Buckelew Tiffaney Thiry 
Rikki Buckelew > Oda Wilhite Jaime Plascencia Jeremy Montilla Drema Radke Lesia Westray Latosha Caraveo Donovan Tabor Theresa Kaczorowski Iris Tait Jennell Stiefel Ethyl Kingsley Carmelina Biles Tiffaney Thiry Arletha Eason  Pei Rall 
Rebbeca Gann > Vina Goodpasture Grace Merritt Dixie Rosenblatt Drema Radke Lashay Mendenhall Jennell Stiefel Jane Cover Carmelina Biles Oda Wilhite Latosha Caraveo Iris Tait Sena Sapien Jeremy Montilla Tarah Mccubbin Rikki Buckelew 
Ethyl Kingsley > Tiffaney Thiry Grace Merritt Theresa Kaczorowski Oda Wilhite Lashay Mendenhall Jaime Plascencia Melissa Wise Rosana Tavera Vina Goodpasture Jane Cover Magali Samms Pei Rall Arletha Eason  Jennell Stiefel Janette Huskins 
Donovan Tabor > Latosha Caraveo Dixie Rosenblatt Theresa Kaczorowski Rikki Buckelew Rosana Tavera Pei Rall Vina Goodpasture Magali Samms Tiffaney Thiry Iris Tait Arletha Eason  Jaime Plascencia Ethyl Kingsley Lashay Mendenhall Lesia Westray 
NULL