Group Abstract Group Abstract

Message Boards Message Boards

Web deploying random drumming patterns?

3 Replies

Thanks Gareth, That's very useful. After centuries (it seems) as a C/C++ programmer I find WPL a really interesting new landscape for me. I love so many aspects of it, but knocking up simple programs like this still need thinking about. Thanks again, Garfield

POSTED BY: Gareth Russell

This may be a start:

tasklist = {<|"test 1" -> 1|>, <|"test 2" -> 2|>,
   <|"test 3" -> 3|>, <|"test 4" -> 4|>, <|"test 5" -> 5|>};
 For[i = 0, i < 10, i++, Pause[1];
 Print[{i, RandomChoice[tasklist]}]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard