Posted 21 January 2016 - 08:21 PM
i am making a game. basiclly i want to use x = math.random(0,36) but i need that number to be displayed on a monitor. HELP
local x, mon = math.random( 0, 36 ), peripheral.find( 'monitor' )
if mon then
mon.clear()
mon.setCursorPos( 1, 1 )
mon.write( x )
end
local x, mon = math.random( 0, 36 ), peripheral.find( 'monitor' ) if mon then mon.clear() mon.setCursorPos( 1, 1 ) mon.write( x ) end