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.

Computer Science & Information Technology

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 collection containing the layout’s child nodes. d. All JavaFX shapes inherit indirectly from class Shape in the javafx.scene package.

Computer Science & Information Technology

Which type of class represents real-world items?

A) entity B) interface C) abstract D) control

Computer Science & Information Technology

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

Computer Science & Information Technology

While Photoshop allows background editing, the Background layer cannot be moved.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology