Update Michael.emam

parent 53bedb68
Pipeline #80168 failed with stage
in 1 minute and 27 seconds
package lab;
component Michael{
ports in Z loop,
out Z out1;
/*
in: two int numbers, range 0..99
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{
out1 = loop;
implementation Math {
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