#!/bin/bash
numtry=0
quotient=`python randintdiv.py`
remainder=`echo $quotient % 2|bc`
#while [ `echo $remainder == 0|bc` ]
while [ $remainder != 0 ]
do
    numtry=`echo $numtry + 1|bc -l`
    quotient=`python randintdiv.py`
    remainder=`echo $quotient % 2|bc`
    echo "$numtry, $quotient, $remainder"
done
