Commit 07ae210a authored by Michael Günther Beyer's avatar Michael Günther Beyer
Browse files

Update Michael.emam

parent 53bedb68
Pipeline #80168 failed with stage
in 1 minute and 27 seconds
package lab; package lab;
component Michael{ /*
ports in Z loop, in: two int numbers, range 0..99
out Z out1; out: random number in the given range of "in"
*/
component Michael {
ports in (0:1:99) inRangeMin,
in (0:1:99) inRangeMax,
out (0:1:99) outRangeRand;
implementation Math{ implementation Math {
out1 = loop; outRangeRand = abs(inRangeMax - inRangeMin) * rand + inRangeMin;
} }
}
}
\ No newline at end of file
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