Latent variable modeling with random features