I actually got the code from a classmate. You were correct by saying it's not complete. Would you be able to provide me with a code that gets the solution I'm looking for?
if (atWorldEdge)
// set random value for 'rc' // code snippet