#!/bin/bash

number=$RANDOM
let "number %= 2"
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

for number in {0..5}
do
  curl http://127.0.0.1:5000/image -F my_file=@"$dir/image$number.jpg" -F "name=1423085821" -F "source=whe$number"
done

#!/bin/bash

number=$RANDOM
let "number %= 2"
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

for number in 1 2 3 4 5 6
do
  curl http://127.0.0.1:5000/image -F my_file=@"$dir/image$number.jpg" -F "name=1423085821" -F "source=whe$number"
done

--- 
+++ 
@@ -4,7 +4,7 @@
 let "number %= 2"
 dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 
-for number in 1 2 3 4 5 6
+for number in {0..5}
 do
   curl http://127.0.0.1:5000/image -F my_file=@"$dir/image$number.jpg" -F "name=1423085821" -F "source=whe$number"
 done
Update script to match available images
