esoteric language |
[Feb. 16th, 2009|11:03 pm] |
|
|
|
Comments: |
> var selected = random_choice(matching_rules) Да, сильный "недетерминизм" (((-:
function random_choice(a) { // Returns a random element from an array return a[Math.floor(Math.random() * a.length)] }
| |