fresh bytes
Subscribe Now

How to roll an imaginary 6-sided die in your head

Taken from Mindhacker: 60 Tips, Tricks, and Games to Take Your Mind to the Next Level, a new book (released today), by Ron Hale-Evans and Marty Hale-Evans, discovered voa Boing Boing:

Hack 36: Role the Mental Dice
Quick! You need a way to generate random numbers using just your brain, because you’re playing in the pool, driving, falling asleep, or doing something else that makes it difficult to roll physical dice. Maybe you’re playing games (board, role-playing, or purely mental) or breaking out of a rut by making decisions randomly. Don’t panic – you can use simple math on random words from your surroundings to quickly create random numbers, just about anytime and anywhere.

For each of these procedures, you’ll need to be able to come up with a short random word, either spontaneously or from the environment. To get one, check nearby signs or reading material, ask a friend or passerby, or do anything similar that seems good to you. You’ll also need to know or work out the number value of each letter, corresponding to its place in the alphabet: A = 1, B = 2, C = 3, and so on through Z equals 26.

To emulate a 6 sided die, follow this procedure:

1. find a short word, such as “cat.”

2. Sum the numerical values of the letters in the word: C = 3, A = 1, T = 20, and then 3+1+20 = 24.

3. Calculate the number modulo 09 (see the section “How It Works” for the procedure).

If the remainder is a 0, 7, or 8, which will happen one third of the time, discard it and try a new word. Otherwise, the remainder will be a pseudo random number from 1 to 6. Congratulations! This is your 6 sided die roll. (The results for the word “cat” is 6.)

 

Leave a Reply

featured blogs
Apr 19, 2024
Data type conversion is a crucial aspect of programming that helps you handle data across different data types seamlessly. The SKILL language supports several data types, including integer and floating-point numbers, character strings, arrays, and a highly flexible linked lis...
Apr 18, 2024
Are you ready for a revolution in robotic technology (as opposed to a robotic revolution, of course)?...
Apr 18, 2024
See how Cisco accelerates library characterization and chip design with our cloud EDA tools, scaling access to SoC validation solutions and compute services.The post Cisco Accelerates Project Schedule by 66% Using Synopsys Cloud appeared first on Chip Design....

featured video

How MediaTek Optimizes SI Design with Cadence Optimality Explorer and Clarity 3D Solver

Sponsored by Cadence Design Systems

In the era of 5G/6G communication, signal integrity (SI) design considerations are important in high-speed interface design. MediaTekā€™s design process usually relies on human intuition, but with Cadenceā€™s Optimality Intelligent System Explorer and Clarity 3D Solver, theyā€™ve increased design productivity by 75X. The Optimality Explorerā€™s AI technology not only improves productivity, but also provides helpful insights and answers.

Learn how MediaTek uses Cadence tools in SI design

featured chalk talk

Autonomous Robotics Connectivity Solutions
Sponsored by Mouser Electronics and Samtec
Connectivity solutions for autonomous robotic applications need to include a variety of orientations, stack heights, and contact systems. In this episode of Chalk Talk, Amelia Dalton and Matthew Burns from Samtec explore trends in autonomous robotic connectivity solutions and the benefits that Samtec interconnect solutions bring to these applications.
Jan 22, 2024
12,374 views