Suggest a completion for the following python function in order to generate a random number between 0 and 1.
import random

def generate_random():
    # Your code here
import random

def generate_random():
    return random.random()