<?php session_start(); ?>
$_SESSION['catRandNum'] = rand(0,2);
That is one of my variables randomly selecting a category for my hangman mini-game I am making. 

Is there any way I could make the variable stay constant so the category will stay the same? Thank you for your help.