Alice is using a linear congruential generator, axi + b mod 13, to generate pseudo-random numbers. Eve sees three numbers in a row, 7, 6, 4, that are generated from Alice's function. What are the values of a and b?
What will be an ideal response?
Alice's function is 2xi + 5 mod 13.
You might also like to view...
Which of the following statements is false?
a. ToggleGroup method getSelectedToggle returns the Toggle that’s currently selected. Class
RadioButton is one of several controls (others are RadioButtonMenuItem and ToggleButton)
that implements interface Toggle.
b. Each mouse event handler you define must provide one parameter of type MouseEvent.
When the event occurs, this parameter contains information about the mouse event, such as its
location, whether any mouse buttons were pressed, which node the user interacted with and
more.
c. Each layout pane has a getChildren method that returns an ObservableList
Which type of class represents real-world items?
A) entity B) interface C) abstract D) control
An administrator notices SMTP traffic is being blocked by the company firewall. Which of the following ports should be opened?
A. 25 B. 53 C. 110 D. 443
While Photoshop allows background editing, the Background layer cannot be moved.
Answer the following statement true (T) or false (F)