Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Pick-random-element/Wren/pick-random-element.wren
Normal file
5
Task/Pick-random-element/Wren/pick-random-element.wren
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import "random" for Random
|
||||
|
||||
var rand = Random.new()
|
||||
var colors = ["red", "green", "blue", "yellow", "pink"]
|
||||
for (i in 0..4) System.print(colors[rand.int(colors.count)])
|
||||
Loading…
Add table
Add a link
Reference in a new issue