This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const crypto = require('crypto'); | |
| // Can set the game param to fix any bias you find | |
| const randomDecimalFromHash = ({ hash, game, charsToTake = 5, startsFromPosition = 0 }) => { | |
| hash = hash + game; | |
| const cycle = 3; | |
| const cycleOffset = (cycle * 2) % hash.length; | |
| const hashSegmentForInterval = hash.substring(cycleOffset, cycleOffset + 2); | |
| const randomInterval = parseInt(hashSegmentForInterval, 16) % charsToTake + 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update table set your_colum = (array['foo', 'bar', 'baz'])[floor(random() * 3 + 1)]; -- replace 3 with your array length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original chat in spanish https://chatgpt.com/c/e033ec6c-297b-45ef-924e-47ae4082130b. There are another things that i asked before, but ignore that and just go to the frustrating conversation that starts with " | |
| sabes, te cuento un sueño que tengo" | |
| sabes, te cuento un sueño que tengo | |
| ChatGPT | |
| ¡Claro! Cuéntame sobre tu sueño. Estoy aquí para escucharte. | |
| mira este codigo | |
| import _ from 'lodash'; |
OlderNewer