Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 01685750 authored by Matthieu Tristram's avatar Matthieu Tristram
Browse files

Add check for boundaries

parent 8facf9b8
......@@ -2,8 +2,10 @@ BEGIN {
srand(seed ? seed : 1)
}
$1 =="par"{
r=2*rand()-1
newval=$4+r*$5
do{
r=2*rand()-1
newval=$4+r*$5
}while( newval<$6 || newval>$7)
printf("%s\t%s\t%s\t%f\t%f\t%f\t%f\n",$1,$2,$3,newval,$5,$6,$7)
}
$1 !="par"{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment