profile
viewpoint
Luis Mesas luismesas Intelygenz San Francisco, California http://www.linkedin.com/in/luismesas

luismesas/goPi 74

A library for using Raspberry Pi on Golang

luismesas/go-piface 3

Go library to interact with raspberry piface

honest-code/honestcode 1

The HonestCode client is a tool which helps DevOps to integrate different systems with honestcode.io

luismesas/Adafruit_mfGFX_Library 0

Multifont version of Adafruit_GFX library with Sharp Memory Display drivers and demo

luismesas/Adafruit_SharpMem 0

This is an Arduino library for the Adafruit Monochrome SHARP Memory Displays

luismesas/agenda 0

Lightweight job scheduling for node

luismesas/b2c 0

behave 2 cucumber

luismesas/bootstrap-n-column 0

LESS mixins for n-column Bootstrap 3 grids

luismesas/butano 0

Modern C++ high level GBA engine

push eventluismesas/butano

GValiente

commit sha e87331fd5d44e3f46b7d9709af9dabf0075d3747

butano: random internal variables are `protected` to allow child classes to access them

view details

push time in 25 days

push eventluismesas/butano

push time in 25 days

push eventluismesas/butano

GValiente

commit sha e87331fd5d44e3f46b7d9709af9dabf0075d3747

butano: random internal variables are `protected` to allow child classes to access them

view details

Luis Mesas

commit sha 72701f1b20d0effcd56c3b425127a30042a21b67

Merge branch 'GValiente:master' into master

view details

push time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

thanks

luismesas

comment created time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

Would you be ok to at least keep the get_state() method to help on debugging?

luismesas

comment created time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

But you are giving no option to alter the starting point of the chain of randomization.

What I would like to do is to run the update() several number of times (a seed) on a device, obtain it's values and then use them as starting point on my code. that allows to have more than one randomizer in the same runtime producing the same chain on different offsets without having to run the loop when starting and avoidf to slow the program.

If that's not a feature you would like on your framework, feel free to reject the PR.

luismesas

comment created time in 25 days

push eventluismesas/butano

Keko (Luis Mesas)

commit sha ccedbfbd98b1607651c1ccb63747871ebf347e3b

butano: remove the set_seed method

view details

push time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

How do you alter the internal values if you want to alter the state without using the sram approach?

luismesas

comment created time in 25 days

push eventluismesas/butano

Keko (Luis Mesas)

commit sha 1e68809b9ff3cb2cf492eea7b136a660a2bb0d23

fix: rename of set_state param to avoid shadowing

view details

push time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

Check the new commit and let me know if you like the approach

luismesas

comment created time in 25 days

push eventluismesas/butano

Keko (Luis Mesas)

commit sha a1a80dcf1d58f5e934436912f14fc4aab42890a6

butano: adds get/set methods to store the state of the random number generator.

view details

push time in 25 days

startedGValiente/butano

started time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

As far as I understand from the Wikipedia article setting the seed like in this approach can change the quality of the generation (that's a risk the user can consider if explained) and as long as the internal values are not all zeroes it will produce a randomized chain of some sort varying it's potential length before repetition.

luismesas

comment created time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

The advantage of the get/set approach is not to change it's values but to store them in the save file, so your generator can continue from it's state after loading the game.

luismesas

comment created time in 25 days

pull request commentGValiente/butano

Method to set seed to random generator

Yes, I was using that approach, but my goal is to use the random generator for a procedural algorithm and the loop can block the gba for quite a while.

Would you be more open to a get_state/set_state + struct approach in which the internal three vars are exposed?

luismesas

comment created time in 25 days

PR opened GValiente/butano

butano: allows to set seed to random generator

Adding the method set_seed() to the BN::random class

This allows setting the current position of the internal _x value which allows to use of the deterministic random generator in a somehow less deterministic way.

It asserts to a nonzero value to ensure not breaking the shifter.

+7 -0

0 comment

1 changed file

pr created time in 25 days

push eventluismesas/butano

Keko (Luis Mesas)

commit sha 4c7155e9c785cdcf85c7be326053e79480b39082

butano: allows to set seed to random generator

view details

push time in 25 days

fork luismesas/butano

Modern C++ high level GBA engine

fork in 25 days

issue openedGValiente/butano

Is possible to use 16x16 tiles in Regular backgrounds?

Hi,

I may not be fully understanding how Regular Backgrounds work.

I'm trying to compose a fullscreen screen background composed of 16x16 pixel tiles instead of what looks to be the default of 8x8 pixel tiles.

Is it possible to specify a different tile size?

Thanks

created time in a month

more