Ale
Ale

Reputation: 443

Which programming language has this syntax?

Which is this programming language?

$((1400+RANDOM%300))

I know it generates a random number between 1400 and 1699

Upvotes: 2

Views: 162

Answers (1)

Ole Melhus
Ole Melhus

Reputation: 1929

I'd go with bash.

ole@servant:~$ echo $((1400+RANDOM%300))
1672

http://tldp.org/LDP/abs/html/randomvar.html

Upvotes: 4

Related Questions