notbenh / next.notbenh.info

I build a silly terminal as my webpage thinggie
1 stars 0 forks source link

random should decide based on input rather then just be ints #34

Closed notbenh closed 10 years ago

notbenh commented 10 years ago

It might be 'too smart' but it seems that:

  > random taco nacho burger pasta

Should randomly pick from these options rather then just be focused on numbers. Possibly this is a case where random should be a dispatch function that picks between 'randomInt' and 'randomStr' or what is given as the example above should be 'pick' instead?