Using Procedure Random Write Code Procedure Randomtrap X Y Generates Pseudo Random Point X Q37129952

using the procedure random() write code for procedurerandom_trap(x,y) which generates a pseudo-random point(x,y) insideoo on the trapazoid formed by the points (1,3),(2,5),(4,3)(3,5).
how do i verify the points are in the trapazoid. how do i makethe procedure random produce numbers in a range from 0 to 5?
real procedure Random(()) integer seed, it, , real array C) integer k ←-16807, 21474 83647 seed ← select initial value for se
iam currently using c++real procedure Random(()) integer seed, it, , real array C) integer k ←-16807, 21474 83647 seed ← select initial value for seed ← size((h)) for i mt= 1

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.