Calling scene on itself, but randomizing background

I’m trying to make this app that teaches kids how to take care of pets. So I have this information screen that calls upon itself and randomizes through 6 facts/backgrounds, but I want to somehow fix it so that it doesn’t show the previous fact. I thought about throwing each fact onto a new scene/file, but I feel like that wouldn’t be optimal…

This is what I have so far 
 

-- http://www.sciencekids.co.nz/sciencefacts/animals/dog.html local composer = require( "composer" ) local widget = require "widget" local scene = composer.newScene() local background local screenW, screenH, halfW = display.contentWidth, display.contentHeight, display.contentWidth\*0.5 local function back() composer.recycleOnSceneChange = true, composer.gotoScene( "Dog", "crossFade", 500 ) return true end local function newInfo() composer.removeScene("Dog\_Info","crossFade", 500) composer.gotoScene("Dog\_Info","crossFade", 500) return true end local centeredGroup = display.newGroup() centeredGroup.x = display.contentCenterX centeredGroup.y = display.contentCenterY function scene:create( event ) local group = self.view fact = math.random(6) if fact == 1 and fact ~= last then print (fact) background = display.newImageRect("Images/Dog\_Info\_Background1.png", screenW, screenH ) elseif fact == 2 and fact ~= last then print (fact) background = display.newImageRect("Images/Dog\_Info\_Background2.png", screenW, screenH ) elseif fact == 3 and fact ~=last then print (fact) background = display.newImageRect("Images/Dog\_Info\_Background3.png", screenW, screenH ) elseif fact == 4 and fact ~= last then print (fact) background = display.newImageRect("Images/Dog\_Info\_Background4.png", screenW, screenH ) elseif fact == 5 and fact ~= last then print (fact) background = display.newImageRect("Images/Dog\_Info\_Background5.png", screenW, screenH ) else print (fact) background = display.newImageRect("Images/Dog\_Info\_Background6.png", screenW, screenH ) end last = fact print (last) --background = display.newImageRect("Images/Dog\_Info\_Background.png", screenW, screenH ) background.anchorX = 0 background.anchorY = 0 local back = widget.newButton{ width = 75, height = 75, defaultFile= "Images/back.png", onRelease = back } local new = widget.newButton{ width = 75, height = 75, defaultFile= "Images/next.png", onRelease = newInfo } new.x = screenW - 50 new.y = screenH - 50 back.x = 50 back.y = screenH - 50 group:insert ( background ) group:insert ( back ) group:insert ( new ) end function scene:show( event ) local group = self.view end function scene:hide( event ) local group = self.view end function scene:destroy( event ) local group = self.view end scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) return scene