Home 2018 Forums Crumble Development Random number generator

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2316
    bcraigie
    Participant

    Could we have a random number function please? Generating a random number from 0 to 255 each time it is called.

    Or would this become possible when the crumble can be programmed by scratch?

    Actually, can the crumble be programmed by writing (typing) code to give a broader range of available functions?

    Thanks

    #2326
    Joseph
    Keymaster

    A random number function is on the list 🙂

    Scratch should take care of this too, but the Crumble won’t be programmed then – just running as a peripheral.

    There is a simple text based language that is used between the GUI and the Crumble, it’s not ready from prime time yet though (no error checking).

    Joseph

    #2335
    Mike
    Participant

    Hi Joseph,

    Are you saying that if/when using Scratch to ‘program’ the crumble, that when you unplug it the crumble does NOT retain the program?

    :/

    #2359
    Simon
    Moderator

    Hi – I’ll be the one doing the Scratch interface.
    Traditionally with the Arduino for instance, you can code it its native language which it retains when unplugged or you can get it to run as a serial command device programmed in a non-native language which won’t work when its un-plugged.

    Initially, thats what I’ll get going on the Crumble.

    However, I’ve already got a Scratch code -> Crumble code compiler (its just handles outputs on/off at moment) so that’s one method of getting code to work un-plugged.

    The other approach is the way MBlock have done it with their Arduinio approach but at the moment their code hasn’t been open-sourced (although they’ve promised to do this)

    Simon

    #2408
    Simon
    Moderator

    New Scratch sub-forum with pre-release ScratchCrumble 🙂

    Scratch subforum

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.