Commit Graph

8 Commits (34286dbecdb339569d8e80c568dba31bfe9e3bc7)

Author SHA1 Message Date
Ben Moon 34286dbecd Add more triggers 2016-05-20 13:12:33 +01:00
Ben Moon 50f2aa6426 Add support for basic ranges
E.g., `shuffle a..z`, `shuffle 1..7`.
2016-05-20 12:51:52 +01:00
Ben Moon b550ec9852 Add support for word lists
E.g., `1 and 2 and 3, and 4`
2016-05-20 12:04:06 +01:00
Ben Moon a1fa583294 Update items attribute to be the shuffled items
More useful than just returning the items.
2016-05-20 11:39:08 +01:00
Ben Moon 777c661d9b Turn off caching
Whoops - we don't want to cache random results!
2016-05-20 11:35:04 +01:00
Ben Moon 07dc434bf8 Ensure no triggering on empty remainder 2016-05-14 17:15:45 +01:00
Ben Moon ba3c840566 Ensure we don't trigger if we've nowt to shuffle
shuffle xs | length xs <= 1 = xs forall xs

That says it all.
2016-05-14 17:11:50 +01:00
Ben Moon 775c1e0f49 Add Shuffle Instant Answer
Allows shuffling of random inputs (mainly lists).
2016-05-14 17:10:31 +01:00