kind = architecture
tests = 256
size = 255
background = 4
arch_input_word_size = 32
default_architecture = "Symphony"
title = (31337_83969937380086, `Random Number Generator`)
dialogue = [
  (mentor_centered, (31337_18488351703350, `Do you know how we deterministic robots can be creative and produce original thoughts? The answer is random number generators.`)),
  (mentor_centered, (31337_90664310835282, `In this level you only get one input, we call this the initial seed. The seed is put through the following steps to produce a pseudorandom number.

[b]32 bit xorshift RNG:[/b]
[box][left]
temp1  = seed  xor (seed  lsr 13)
temp2  = temp1 xor (temp1 lsl 17)
result = temp2 xor (temp2 lsr 5)
[/left][/box]

Finally output "result" and then use it as the seed of the next iteration.
`))
]
