A dice tray for assisting in electronic gaming, a bottom of the dice tray defining a throwing area arranged for throwing and rolling of dice , the dice tray comprising - a flatbed scanning device comprising a scanning surface and being configured for scanning an image of the scanning surface, - a processor configured for receiving scanning information regarding the image of the scanning surface and programmed for deriving, based on said image, data regarding the dice thrown, wherein the full surface of the throwing area is formed by the scanning surface of the flatbed scanner and the scanning surface contains an array of photo-detectors which are uniformly spaced apart at a maximum of 600 microns and which are any of active pixel sensors, amorphous silicon (a-Si) p-i-n or n-i-p photo-detectors, charged-coupled detectors (CCDs), organic photo-detectors, or other sensors that turn photons into electrical signals, characterised in that the flatbed scanning device is being configured for scanning instantaneously, realtime, an image of the scanning surface and the processor further being configured to use the image of the scanning surface for detecting tampering, by: - recognizing the dice touching the scanner surface and subsequently using a gesture recognition function to detect another object before the complete standstill of the dice and/or - using an algorithm to check the trajectory of the dice after being thrown and detecting certain movements that cannot happen when the dice are thrown in a normal way. - a flatbed scanning device comprising a scanning surface and being configured for scanning an image of the scanning surface, - a processor configured for receiving scanning information regarding the image of the scanning surface and programmed for deriving, based on said image, data regarding the dice thrown, wherein the full surface of the throwing area is formed by the scanning surface of the flatbed scanner and the scanning surface contains an array of photo-detectors which are uniformly spaced apart at a maximum of 600 microns and which are any of active pixel sensors, amorphous silicon (a-Si) p-i-n or n-i-p photo-detectors, charged-coupled detectors (CCDs), organic photo-detectors, or other sensors that turn photons into electrical signals, characterised in that the flatbed scanning device is being configured for scanning instantaneously, realtime, an image of the scanning surface and the processor further being configured to use the image of the scanning surface for detecting tampering, by: - recognizing the dice touching the scanner surface and subsequently using a gesture recognition function to detect another object before the complete standstill of the dice and/or - using an algorithm to check the trajectory of the dice after being thrown and detecting certain movements that cannot happen when the dice are thrown in a normal way. - recognizing the dice touching the scanner surface and subsequently using a gesture recognition function to detect another object before the complete standstill of the dice and/or - using an algorithm to check the trajectory of the dice after being thrown and detecting certain movements that cannot happen when the dice are thrown in a normal way. <EOS>