<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(request):
 """Update a current user's session."""

    session = yield from app.ps.session.load(request)
    session['random'] = random.random()
    return session