I need help creating a pseudo-random number generator in Java usingthe method he
ID: 3612726 • Letter: I
Question
I need help creating a pseudo-random number generator in Java usingthe method headerpublic static int myRandom(int i, int b)
The pseudo-random number generator must satisfy the property thatevery number from 1 to b-1 must be generated exactly once as iranges from 1 to b-1. The method itself returns the i-thrandom number for a table with b buckets. Remember thatgiven a fixed i and b the method shouldalways return the same number.
Explanation / Answer
please rate - thanks import java.util.*; import java.io.*; public class pseudorand {public static void main(String []args) {int i,b,num; Scanner in=new Scanner(System.in); System.out.println("How many bucketsRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.